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
This commit is contained in:
committed by
jeangraff30
parent
ea6b45d633
commit
8c1d3f5af3
2
sepolicy/vendor/thermal-engine.te
vendored
2
sepolicy/vendor/thermal-engine.te
vendored
@@ -2,7 +2,7 @@ typeattribute thermal-engine data_between_core_and_vendor_violators;
|
|||||||
|
|
||||||
# Allow thermal-engine to read files in /sys
|
# Allow thermal-engine to read files in /sys
|
||||||
r_dir_file(thermal-engine, sysfs)
|
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:dir search;
|
||||||
allow thermal-engine sysfs_healthd:file rw_file_perms;
|
allow thermal-engine sysfs_healthd:file rw_file_perms;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user