typeattribute thermal-engine data_between_core_and_vendor_violators; # Allow thermal-engine to read files in /sys r_dir_file(thermal-engine, sysfs) r_dir_file(thermal-engine, sysfs_vadc_dev) allow thermal-engine sysfs_healthd:dir search; allow thermal-engine sysfs_healthd:file rw_file_perms; allow thermal-engine self:capability { chown fowner }; get_prop(thermal-engine, moto_boot_prop) allow thermal-engine { proc_stat proc_loadavg }:file r_file_perms; allow thermal-engine sysfs_batteryinfo:dir r_dir_perms; allow thermal-engine sysfs_batteryinfo:file rw_file_perms; allow thermal-engine sysfs_hwmon:dir r_dir_perms; allow thermal-engine sysfs_hwmon:file rw_file_perms; allow thermal-engine sysfs_devfreq:dir r_dir_perms; allow thermal-engine sysfs_devfreq:file rw_file_perms; r_dir_file(thermal-engine sysfs_socinfo)