android_device_xiaomi_sdm66.../sepolicy/vendor/thermal-engine.te
Sabar 964f9afff1 sdm660-common: sepolicy: Adjust sepolicy for qti thermal
Co-Authored-By: Clarence K <clarencekuiek@proton.me>
2024-01-14 17:19:23 +01:00

12 lines
468 B
Text

allow thermal-engine thermal_data_file:dir rw_dir_perms;
allow thermal-engine thermal_data_file:file create_file_perms;
allow thermal-engine sysfs:dir r_dir_perms;
allow thermal-engine self:capability { chown fowner };
# Rule for thermal-engine to access init process
unix_socket_connect(thermal-engine, property, init);
set_prop(thermal-engine, vendor_thermal_prop);
r_dir_file(thermal-engine, sysfs_thermal)
dontaudit thermal-engine self:capability dac_override;