android_device_xiaomi_sm725.../sepolicy/vendor/mi_thermald.te
althafvly 39eb7dbc12 sm7250-common: sepolicy: Label thermal_hbm_disabled
Change-Id: I51db20e8d30ba18c8b2e5bcbff09b97339b0fa80
2022-06-05 14:29:13 +02:00

32 lines
876 B
Plaintext

type mi_thermald, domain;
type mi_thermald_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(mi_thermald)
allow mi_thermald self:capability { chown fowner fsetid };
# Allow mi_thermald to read thermal_data_file
allow mi_thermald thermal_data_file:dir rw_dir_perms;
allow mi_thermald thermal_data_file:file create_file_perms;
r_dir_file(mi_thermald, sysfs_battery_supply)
r_dir_file(mi_thermald, sysfs_devices_system_cpu)
r_dir_file(mi_thermald, vendor_sysfs_graphics)
r_dir_file(mi_thermald, vendor_sysfs_kgsl)
r_dir_file(mi_thermald, sysfs_leds)
r_dir_file(mi_thermald, sysfs_thermal)
# Allow mi_thermald to read and write to sysfs_*
allow mi_thermald {
sysfs_battery_supply
sysfs_devices_system_cpu
vendor_sysfs_graphics
vendor_sysfs_kgsl
sysfs_thermal
}:{
file
lnk_file
} rw_file_perms;
set_prop(mi_thermald, vendor_thermal_normal_prop)