summaryrefslogtreecommitdiffstats
path: root/selinux/te_macros
diff options
context:
space:
mode:
authorsbrissen <sbrissen@hotmail.com>2014-12-05 14:23:09 -0500
committersbrissen <sbrissen@hotmail.com>2015-01-16 08:28:01 -0500
commit7cfabc06fd5b18931b51a92d8ee1a586c81328fc (patch)
tree390cd7ed61c189505a3eaa07991df0a87afbb775 /selinux/te_macros
parentdbddb2275770dcf4e7a27c12607881694fbcc507 (diff)
downloaddevice_samsung_t0lte-7cfabc06fd5b18931b51a92d8ee1a586c81328fc.tar.gz
device_samsung_t0lte-7cfabc06fd5b18931b51a92d8ee1a586c81328fc.tar.bz2
device_samsung_t0lte-7cfabc06fd5b18931b51a92d8ee1a586c81328fc.zip
t0lte: initial L bring up
-selinux policies still need work -switch fstab to by-name Change-Id: I397931d0aa2ea7887774007acf40c9f03e66fb14
Diffstat (limited to 'selinux/te_macros')
-rwxr-xr-xselinux/te_macros13
1 files changed, 7 insertions, 6 deletions
diff --git a/selinux/te_macros b/selinux/te_macros
index 274fd55..8378501 100755
--- a/selinux/te_macros
+++ b/selinux/te_macros
@@ -1,12 +1,13 @@
#####################################
# qmux_socket(clientdomain)
-# Allow client to send via a local
-# socket to the qmux domain.
+# Allow client domain to connecto and send
+# via a local socket to the qmux domain.
+# Also allow the client domain to remove
+# its own socket.
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 };
+allow $1 qmuxd_socket:dir create_dir_perms;
+unix_socket_connect($1, qmuxd, qmuxd)
+allow $1 qmuxd_socket:sock_file { read getattr write setattr create unlink };
')