This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
device_motorola_msm8953-common/sepolicy/vendor/thermal-engine.te
Aayush Gupta 8c1d3f5af3 msm8953-common: Allow thermal-engine r_dir_file perms for sysfs*
[    8.618801] type=1400 audit(69459649.586:21): avc: denied { read } for comm="thermal-engine" name="kgsl" dev="sysfs" ino=29020 scontext=u:r:thermal-engine:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0
12-18 04:50:58.101   648   648 I auditd  : type=1400 audit(0.0:32): avc: denied { search } for uid=0 comm="thermal-engine" name="qpnp-vadc-10" dev="sysfs" ino=14445 scontext=u:r:thermal-engine:s0 tcontext=u:object_r:sysfs_vadc_dev:s0 tclass=dir permissive=0

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I09c8dbaf80ecb7a6a511cc83b934dcb3128b0e76
2021-06-20 19:11:01 -03:00

21 lines
826 B
Plaintext

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)