From de5ba527af64c2ae715c2487119a27501d85cc09 Mon Sep 17 00:00:00 2001 From: dd3boh Date: Fri, 3 Nov 2017 19:48:41 +0100 Subject: 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 --- sepolicy/thermal-engine.te | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 sepolicy/thermal-engine.te (limited to 'sepolicy/thermal-engine.te') 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 }; -- cgit v1.2.3