aboutsummaryrefslogtreecommitdiff
path: root/sepolicy/thermal-engine.te
diff options
context:
space:
mode:
authordd3boh <dade.garberi@gmail.com>2017-11-03 19:48:41 +0100
committerdd3boh <dade.garberi@gmail.com>2017-11-04 23:28:42 +0100
commitde5ba527af64c2ae715c2487119a27501d85cc09 (patch)
tree45ea99f9bf7ad60e635dc400d17a15f2dcbfffbc /sepolicy/thermal-engine.te
parent64dac7dc7bf956e3394fd88c87e2c614411c0c3f (diff)
msm8996-common: Initial sepolicy
* Lots of parts are from the old one so thanks to everyone who contributed to that one * Still it doesn't boot in enforcing though Signed-off-by: dd3boh <dade.garberi@gmail.com>
Diffstat (limited to 'sepolicy/thermal-engine.te')
-rw-r--r--sepolicy/thermal-engine.te10
1 files changed, 10 insertions, 0 deletions
diff --git a/sepolicy/thermal-engine.te b/sepolicy/thermal-engine.te
new file mode 100644
index 0000000..4b8c024
--- /dev/null
+++ b/sepolicy/thermal-engine.te
@@ -0,0 +1,10 @@
+type_transition thermal-engine system_data_file:file thermal_data_file "decrypt.txt";
+allow thermal-engine sysfs_kgsl:file r_file_perms;
+allow thermal-engine system_data_file:dir w_dir_perms;
+allow thermal-engine thermal_data_file:file create_file_perms;
+allow thermal-engine sysfs_usb_supply:dir search;
+allow thermal-engine sysfs_usb_supply:file r_file_perms;
+allow thermal-engine diag_device:chr_file { read write };
+allow thermal-engine diag_device:chr_file open;
+allow thermal-engine diag_device:chr_file ioctl;
+allow thermal-engine socket_device:sock_file { create setattr };