Fix init-thermal-logging-sh avc denied problem

11-22 15:26:24.090 W/cat     (11317): type=1400 audit(0.0:6481): avc: denied { read } for name="thermal_zone41" dev="sysfs" ino=50767 scontext=u:r:init-thermal-logging-sh:s0 tcontext=u:object_r:sysfs_thermal:s0 tclass=lnk_file permissive=0

Bug: 126562025
Test: Walleye: thermal logd works normally
               thermal hal works normally
               thermal-engine CPU throttling works normally
               Verified thermal info in dumpstate board
Change-Id: Ief4d1914629bde632cf0231ae1233b2fc703437e
Signed-off-by: TeYuan Wang <kamewang@google.com>
This commit is contained in:
TeYuan Wang
2019-11-22 11:59:33 +08:00
parent 8fd8553585
commit 6538110587
2 changed files with 1 additions and 3 deletions

View File

@@ -243,9 +243,6 @@
/vendor/lib/rfsa/adsp/libdspCV_skel\.so u:object_r:same_process_hal_file:s0
/vendor/lib/rfsa/adsp/libapps_mem_heap\.so u:object_r:same_process_hal_file:s0
# thermal sysfs files
/sys/class/thermal(/.*)? u:object_r:sysfs_thermal:s0
# data files
/data/vendor/netmgr(/.*)? u:object_r:netmgr_data_file:s0
/data/vendor/location(/.*)? u:object_r:location_data_file:s0

View File

@@ -46,6 +46,7 @@ genfscon sysfs /devices/soc/soc:qcom,ipa_fws@1e08000 u:object
genfscon sysfs /devices/soc/cce0000.qcom,venus u:object_r:sysfs_msm_subsys:s0
genfscon sysfs /devices/soc/0.qcom,rmtfs_sharedmem u:object_r:sysfs_rmtfs:s0
genfscon sysfs /devices/soc/soc:fp_fpc1020 u:object_r:sysfs_fingerprint:s0
genfscon sysfs /class/thermal u:object_r:sysfs_thermal:s0
genfscon sysfs /devices/virtual/thermal u:object_r:sysfs_thermal:s0
genfscon sysfs /devices/virtual/wahoo_laser u:object_r:sysfs_laser:s0
genfscon sysfs /module/msm_thermal u:object_r:sysfs_thermal:s0