allow power hal to access vendor_mm files

I auditd  : type=1400 audit(0.0:79): avc:  denied  { write } for  comm="NodeLooperThrea" name="vendor_mm" dev="sysfs" ino=56518 scontext=u:r:hal_power_default:s0 tcontext=u:object_r:sysfs_vendor_mm:s0 tclass=dir permissive=0

Bug: 357995885
Test: check avc error
Flag: EXEMPT adding avc rule
Change-Id: I1261aa14f2cd912ede51edc2e1a547d2e182ca46
Signed-off-by: Martin Liu <liumartin@google.com>
This commit is contained in:
Martin Liu 2024-12-12 10:09:30 +00:00
parent 737725ba27
commit 437d35e7cb

View file

@ -1,3 +1,7 @@
# allow power hal to access pa kill knobs
allow hal_power_default sysfs_pakills:file rw_file_perms;
allow hal_power_default sysfs_pakills:dir r_dir_perms;
r_dir_file(hal_power_default, sysfs_vendor_mm);
# allow power hal to access vendor_mm knobs
allow hal_power_default sysfs_vendor_mm:file rw_file_perms;