allow power hal to access display files

avc:  denied  { write } for  name="early_wakeup" dev="sysfs" ino=110609 scontext=u:r:hal_power_default:s0 tcontext=u:object_r:sysfs_display:s0 tclass=file permissive=1
avc:  denied  { open } for path="/sys/devices/platform/sswrp_dpu@ec00000/ee00000.dc9x00/early_wakeup" dev="sysfs" ino=110609 scontext=u:r:hal_power_default:s0 tcontext=u:object_r:sysfs_display:s0
 class=file permissive=1

Bug: 350981178
Test: PowerHAL can access early_wakeup node in enforcing mode
Flag: EXEMPT bugfix
Change-Id: Ic9d619e971059d9b496a9e5c146089a01f6a0431
This commit is contained in:
Midas Chien 2025-01-06 03:43:23 +00:00 committed by Wilson Sung
parent 2d245f83c6
commit 6a918f2bd3

View file

@ -5,3 +5,6 @@ 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;
# Allow set display early wake up
allow hal_power_default sysfs_display:file rw_file_perms;