aboutsummaryrefslogtreecommitdiffstats
path: root/selinux/te_macros
diff options
context:
space:
mode:
authorsbrissen <sbrissen@hotmail.com>2013-11-13 09:01:02 -0500
committersbrissen <sbrissen@hotmail.com>2013-11-13 09:12:59 -0500
commit7fb9174903c3415abc027c9d4de508946c3011e5 (patch)
tree05de01c6e9845aa212e8832ba75681bfb35f0b1f /selinux/te_macros
parent0dc75f6b11c6cb5cb40bfda497269ae2d4718446 (diff)
downloaddevice_samsung_kona-common-7fb9174903c3415abc027c9d4de508946c3011e5.zip
device_samsung_kona-common-7fb9174903c3415abc027c9d4de508946c3011e5.tar.gz
device_samsung_kona-common-7fb9174903c3415abc027c9d4de508946c3011e5.tar.bz2
kona-common: 4.4 updates
Change-Id: I99fae341e0f1e827608f43a14c9648a9476721ed
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 };
+')
+
+