diff options
author | Ted Lin <tedlin@google.com> | 2022-08-02 15:31:17 +0800 |
---|---|---|
committer | Ted Lin <tedlin@google.com> | 2022-08-03 09:18:35 +0000 |
commit | fd1cdb48b7ce3f7eeaa7874a68eb48ddb045a066 (patch) | |
tree | d630989913b618d7e2521b12731421c0671f52fc | |
parent | 342edcb7de37428614b7e2db2839f88424e73e7c (diff) | |
download | felix-sepolicy-fd1cdb48b7ce3f7eeaa7874a68eb48ddb045a066.tar.gz |
Sepolicy: fix the avc
07-29 08:18:53.464 876 876 I auditd : type=1400 audit(0.0:4): avc: denied { read } for comm="android.hardwar" name="type" dev="sysfs" ino=78463 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
Bug: 240632860
Test: reboot device and check the avc
Signed-off-by: Ted Lin <tedlin@google.com>
Change-Id: Ibb1f93c2003e9229c1fd2b3bd14ee022fa6539cc
-rw-r--r-- | vendor/genfs_contexts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/genfs_contexts b/vendor/genfs_contexts index b2fd362..e69743c 100644 --- a/vendor/genfs_contexts +++ b/vendor/genfs_contexts @@ -1,6 +1,11 @@ # BMS genfscon sysfs /devices/platform/10da0000.hsi2c/i2c-7/i2c-p9222 u:object_r:sysfs_wlc:s0 genfscon sysfs /devices/platform/10da0000.hsi2c/i2c-7/i2c-p9222/power_supply u:object_r:sysfs_batteryinfo:s0 +# maxfg_base +genfscon sysfs /devices/platform/10d60000.hsi2c/i2c-6/6-0036/power_supply u:object_r:sysfs_batteryinfo:s0 +# maxfg_flip +genfscon sysfs /devices/platform/10da0000.hsi2c/i2c-7/7-0036/power_supply u:object_r:sysfs_batteryinfo:s0 + # Display genfscon sysfs /devices/platform/1c2d0000.drmdsim/1c2d0000.drmdsim.0/gamma u:object_r:sysfs_display:s0 |