summaryrefslogtreecommitdiffstats
path: root/selinux/te_macros
diff options
context:
space:
mode:
authorRoberto Gibellini <gibellini.roberto@gmail.com>2016-11-19 17:21:50 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-11-19 16:36:52 -0800
commitf2a3063bc88ee0a075c04fa274c10c39c7abfc9b (patch)
tree0042544658ce6961403f6eac79ca6217b8efc5cc /selinux/te_macros
parentb8ca7e9e41daaab93c33b136dd8f238606bf9352 (diff)
downloaddevice_samsung_i9305-f2a3063bc88ee0a075c04fa274c10c39c7abfc9b.zip
device_samsung_i9305-f2a3063bc88ee0a075c04fa274c10c39c7abfc9b.tar.gz
device_samsung_i9305-f2a3063bc88ee0a075c04fa274c10c39c7abfc9b.tar.bz2
Revert "i9305 : second cleanup"
I'll push single commits This reverts commit 2f6c7f36412046bd8b67ffbf511ffa74d7cc6842. Change-Id: I147666b0637e2950612653ad680b7a1f33e173f0
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 };
+')
+
+