vendor: omni: sepolicy: allow access to thermal_syfs
needed for CPU info overlay to show temp
Change-Id: I48671faafc77e93dcfad1d1b47ad9caad31771af
diff --git a/sepolicy/platform_app.te b/sepolicy/platform_app.te
new file mode 100644
index 0000000..4cef7e5
--- /dev/null
+++ b/sepolicy/platform_app.te
@@ -0,0 +1,10 @@
+###########################
+# OmniROM common sepolicy
+#
+
+# CPU info overlay temp
+allow platform_app sysfs_thermal:file r_file_perms;
+allow platform_app sysfs_thermal:dir search;
+allow platform_app sysfs_thermal:lnk_file r_file_perms;
+
+
diff --git a/sepolicy/sepolicy.mk b/sepolicy/sepolicy.mk
index 2084aaa..166a8e3 100644
--- a/sepolicy/sepolicy.mk
+++ b/sepolicy/sepolicy.mk
@@ -14,6 +14,7 @@
healthd.te \
property_contexts \
installd.te \
+ platform_app.te \
property.te \
shell.te \
sysinit.te \