msm8953-common: Import sepolicy from sdm660 tree

This commit is contained in:
jeangraff30
2020-11-15 10:51:35 +01:00
parent 464b0ce482
commit 7535f9d5ae
53 changed files with 600 additions and 12 deletions

18
sepolicy/vendor/thermal-engine.te vendored Normal file
View File

@@ -0,0 +1,18 @@
typeattribute thermal-engine data_between_core_and_vendor_violators;
# Allow thermal-engine to read files in /sys
r_dir_file(thermal-engine, sysfs)
allow thermal-engine sysfs_healthd:dir search;
allow thermal-engine sysfs_healthd:file rw_file_perms;
allow thermal-engine self:capability { chown fowner };
get_prop(thermal-engine, moto_boot_prop)
allow thermal-engine { proc_stat proc_loadavg }:file r_file_perms;
allow thermal-engine sysfs_hwmon:dir r_dir_perms;
allow thermal-engine sysfs_hwmon:file rw_file_perms;
allow thermal-engine sysfs_devfreq:dir r_dir_perms;
allow thermal-engine sysfs_devfreq:file rw_file_perms;
r_dir_file(thermal-engine sysfs_socinfo)