summaryrefslogtreecommitdiffstats
path: root/selinux/qmux.te
diff options
context:
space:
mode:
authorslayher <layhertony@gmail.com>2013-08-09 22:32:05 -0400
committerslayher <layhertony@gmail.com>2013-08-09 22:32:05 -0400
commit78a966a467efd8966f674e665bff8101518eb8d5 (patch)
tree48e27059329b448a44f672755386e374a7fe3a01 /selinux/qmux.te
parentdbce7c06a9ac7e40f1f4cd5be63d8a38f3b8458d (diff)
downloaddevice_samsung_t0lte-78a966a467efd8966f674e665bff8101518eb8d5.tar.gz
device_samsung_t0lte-78a966a467efd8966f674e665bff8101518eb8d5.tar.bz2
device_samsung_t0lte-78a966a467efd8966f674e665bff8101518eb8d5.zip
SELinux Policies: t0lte family
Change-Id: Ib5951934a62fae38425ef9d324de758c2c69b3cb
Diffstat (limited to 'selinux/qmux.te')
-rwxr-xr-xselinux/qmux.te21
1 files changed, 21 insertions, 0 deletions
diff --git a/selinux/qmux.te b/selinux/qmux.te
new file mode 100755
index 0000000..e2a5bbf
--- /dev/null
+++ b/selinux/qmux.te
@@ -0,0 +1,21 @@
+# Qualcomm Management Interface Multiplexer
+type qmux, domain;
+type qmux_exec, exec_type, file_type;
+
+# Started by init
+init_daemon_domain(qmux)
+
+# Create local qmux_connect_socket
+allow qmux qmuxd_socket:dir w_dir_perms;
+allow qmux qmuxd_socket:sock_file { create setattr getattr unlink };
+
+# /dev/hsicctl* node access
+allow qmux radio_device:chr_file rw_file_perms;
+
+# Allow logging diagnostic items
+allow qmux diagnostic_device:chr_file rw_file_perms;
+
+allow qmux self:capability { dac_override setuid };
+
+# XXX Should we label with own type
+allow qmux sysfs:file { open write append read getattr };