Revert "sdm660-common: sepolicy: Adjust sepolicy for qti thermal"

This reverts commit 77c4792ac9.
This commit is contained in:
pix106 2021-07-30 18:10:45 +02:00
parent 9d53e14cc8
commit 5de9bdae50
4 changed files with 4 additions and 11 deletions

View file

@ -1,8 +0,0 @@
allow hal_thermal_default sysfs_thermal:dir r_dir_perms;
allow hal_thermal_default sysfs_thermal:file rw_file_perms;
allow hal_thermal_default proc_stat:file r_file_perms;
allow hal_thermal_default self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;
# read thermal config
get_prop(hal_thermal_default, vendor_thermal_prop)

View file

@ -10,4 +10,4 @@ type dirac_prop, property_type;
type vendor_power_prop, property_type; type vendor_power_prop, property_type;
# Thermal engine # Thermal engine
type vendor_thermal_prop, property_type; type thermal_engine_prop, property_type;

View file

@ -53,4 +53,5 @@ ro.build.software.version u:object_r:exported_radio_prop:s0
ro.product.mod_device u:object_r:exported_radio_prop:s0 ro.product.mod_device u:object_r:exported_radio_prop:s0
# Thermal engine # Thermal engine
vendor.thermal.config u:object_r:vendor_thermal_prop:s0 persist.sys.thermal. u:object_r:thermal_engine_prop:s0
sys.thermal. u:object_r:thermal_engine_prop:s0

View file

@ -3,7 +3,7 @@ allow thermal-engine thermal_data_file:file create_file_perms;
allow thermal-engine sysfs:dir r_dir_perms; allow thermal-engine sysfs:dir r_dir_perms;
allow thermal-engine self:capability { chown fowner }; allow thermal-engine self:capability { chown fowner };
set_prop(thermal-engine, vendor_thermal_prop); set_prop(thermal-engine, thermal_engine_prop);
r_dir_file(thermal-engine, sysfs_thermal) r_dir_file(thermal-engine, sysfs_thermal)
dontaudit thermal-engine self:capability dac_override; dontaudit thermal-engine self:capability dac_override;