diff options
author | mark <mcampbellsmith@gmail.com> | 2013-08-16 22:37:42 +1000 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2013-08-24 15:18:37 +0000 |
commit | e752b23df936271a20a2da6f5818067535a2e7be (patch) | |
tree | 344b8383b833ee15b69f11ae524351be846b1f54 /selinux/qmux.te | |
parent | 80e197c1e48c55a79249140d84585493dac24ad8 (diff) | |
download | device_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/qmux.te')
-rwxr-xr-x | selinux/qmux.te | 21 |
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 }; |