2021-09-01 05:33:02 -04:00
|
|
|
type mi_thermald, domain;
|
|
|
|
type mi_thermald_exec, exec_type, vendor_file_type, file_type;
|
2021-10-13 04:13:16 -04:00
|
|
|
type thermal_data_file, data_file_type, file_type;
|
|
|
|
|
2021-10-18 17:25:37 -04:00
|
|
|
init_daemon_domain(mi_thermald)
|
|
|
|
|
2021-10-13 04:13:16 -04:00
|
|
|
r_dir_file(mi_thermald, sysfs)
|
|
|
|
r_dir_file(mi_thermald, sysfs_leds)
|
|
|
|
r_dir_file(mi_thermald, sysfs_thermal)
|
|
|
|
r_dir_file(mi_thermald, vendor_sysfs_kgsl)
|
|
|
|
r_dir_file(mi_thermald, vendor_sysfs_battery_supply)
|
|
|
|
r_dir_file(mi_thermald, vendor_sysfs_graphics)
|
|
|
|
r_dir_file(mi_thermald, thermal_data_file)
|
|
|
|
r_dir_file(mi_thermald, vendor_data_file)
|
|
|
|
|
|
|
|
allow mi_thermald sysfs:file w_file_perms;
|
|
|
|
allow mi_thermald sysfs_thermal:file w_file_perms;
|
|
|
|
allow mi_thermald vendor_sysfs_kgsl:file w_file_perms;
|
|
|
|
allow mi_thermald vendor_sysfs_battery_supply:file w_file_perms;
|
|
|
|
allow mi_thermald vendor_sysfs_graphics:file w_file_perms;
|
2021-10-17 13:44:09 -04:00
|
|
|
allow mi_thermald thermal_data_file:dir w_dir_perms;
|
|
|
|
allow mi_thermald thermal_data_file:file create_file_perms;
|
2021-10-13 04:13:16 -04:00
|
|
|
allow mi_thermald vendor_data_file:file rw_file_perms;
|
|
|
|
allow mi_thermald vendor_data_file:dir w_dir_perms;
|
|
|
|
allow mi_thermald sysfs_devices_system_cpu:file rw_file_perms;
|
|
|
|
|
|
|
|
allow mi_thermald self:capability { fsetid sys_boot chown fowner };
|
|
|
|
allow mi_thermald self:capability2 { wake_alarm block_suspend };
|