aboutsummaryrefslogtreecommitdiffstats
path: root/selinux/te_macros
diff options
context:
space:
mode:
authormark <mcampbellsmith@gmail.com>2013-08-16 22:37:42 +1000
committerGerrit Code Review <gerrit@cyanogenmod.org>2013-08-24 15:18:37 +0000
commite752b23df936271a20a2da6f5818067535a2e7be (patch)
tree344b8383b833ee15b69f11ae524351be846b1f54 /selinux/te_macros
parent80e197c1e48c55a79249140d84585493dac24ad8 (diff)
downloaddevice_samsung_i9305-e752b23df936271a20a2da6f5818067535a2e7be.zip
device_samsung_i9305-e752b23df936271a20a2da6f5818067535a2e7be.tar.gz
device_samsung_i9305-e752b23df936271a20a2da6f5818067535a2e7be.tar.bz2
i9305: Add selinux policies
Change-Id: I69d96e7084c7b0871c9d2cd318db05b461912a43
Diffstat (limited to 'selinux/te_macros')
-rwxr-xr-xselinux/te_macros12
1 files changed, 12 insertions, 0 deletions
diff --git a/selinux/te_macros b/selinux/te_macros
new file mode 100755
index 0000000..274fd55
--- /dev/null
+++ b/selinux/te_macros
@@ -0,0 +1,12 @@
+#####################################
+# qmux_socket(clientdomain)
+# Allow client to send via a local
+# socket to the qmux domain.
+define(`qmux_socket', `
+type $1_qmuxd_socket, file_type;
+file_type_auto_trans($1, qmuxd_socket, $1_qmuxd_socket)
+unix_socket_connect($1, qmuxd, qmux)
+allow qmux $1_qmuxd_socket:sock_file { getattr unlink };
+')
+
+