aboutsummaryrefslogtreecommitdiff
path: root/sepolicy/vendor/thermal-engine.te
diff options
context:
space:
mode:
Diffstat (limited to 'sepolicy/vendor/thermal-engine.te')
-rw-r--r--sepolicy/vendor/thermal-engine.te6
1 files changed, 6 insertions, 0 deletions
diff --git a/sepolicy/vendor/thermal-engine.te b/sepolicy/vendor/thermal-engine.te
new file mode 100644
index 0000000..4ad4f10
--- /dev/null
+++ b/sepolicy/vendor/thermal-engine.te
@@ -0,0 +1,6 @@
+allow thermal-engine { sysfs_batteryinfo sysfs_usb_supply }:file r_file_perms;
+allow thermal-engine sysfs_batteryinfo:file write;
+allow thermal-engine { sysfs_batteryinfo sysfs_usb_supply }:dir search;
+
+# Allow thermal-engine to read files in /sys
+r_dir_file(thermal-engine, sysfs)