From 8c1d3f5af36ecdad5da227f07494fd4ecffafe80 Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Sun, 27 Sep 2020 11:58:05 +0000 Subject: [PATCH] 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 Change-Id: I09c8dbaf80ecb7a6a511cc83b934dcb3128b0e76 --- sepolicy/vendor/thermal-engine.te | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sepolicy/vendor/thermal-engine.te b/sepolicy/vendor/thermal-engine.te index 97bd26d..a063565 100644 --- a/sepolicy/vendor/thermal-engine.te +++ b/sepolicy/vendor/thermal-engine.te @@ -2,7 +2,7 @@ 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;