android_device_xiaomi_sdm66.../sepolicy/vendor/hal_thermal_default.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

11 lines
465 B
Text

# This is required to access proc stat for fetching CPU usage
allow hal_thermal_default proc_stat:file { getattr open read };
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)