mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-01-27 19:18:35 +00:00
allow android.hardware.power.stats-service.pixel to access sysfs_leds
01-20 15:26:18.272 760 760 I android.hardwar: type=1400 audit(0.0:8): avc: denied { search } for name="backlight" dev="sysfs" ino=69387 scontext=u:r:hal_power_stats_default:s0 tcontext=u:object_r:sysfs_leds:s0 tclass=dir permissive=1
01-20 15:26:18.272 760 760 I android.hardwar: type=1400 audit(0.0:9): avc: denied { read } for name="state" dev="sysfs" ino=69419 scontext=u:r:hal_power_stats_default:s0 tcontext=u:object_r:sysfs_leds:s0 tclass=file permissive=1
01-20 15:26:18.272 760 760 I android.hardwar: type=1400 audit(0.0:10): avc: denied { open } for path="/sys/devices/platform/1c2c0000.drmdsim/1c2c0000.drmdsim.0/backlight/panel0-backlight/state" dev="sysfs" ino=69419 scontext=u:r:hal_power_stats_default:s0 tcontext=u:object_r:sysfs_leds:s0 tclass=file permissive=1
Bug: 214473005
Test: no avc denied error during bootup
Change-Id: I5b8a232202a8f1c5b10878c10be9bec3329fb7ad
This commit is contained in:
@@ -25,7 +25,3 @@ dontaudit hal_power_stats_default sysfs_wifi:dir { search };
|
||||
dontaudit hal_power_stats_default sysfs_wifi:file { getattr };
|
||||
dontaudit hal_power_stats_default sysfs_wifi:file { open };
|
||||
dontaudit hal_power_stats_default sysfs_wifi:file { read };
|
||||
# b/214473005
|
||||
dontaudit hal_power_stats_default sysfs_leds:dir { search };
|
||||
dontaudit hal_power_stats_default sysfs_leds:file { open };
|
||||
dontaudit hal_power_stats_default sysfs_leds:file { read };
|
||||
|
||||
@@ -3,3 +3,5 @@ allow hal_power_stats_default sysfs_scsi_devices_0000:file r_file_perms;
|
||||
|
||||
# allowed to access dislay stats sysfs node
|
||||
allow hal_power_stats_default sysfs_display:file r_file_perms;
|
||||
|
||||
r_dir_file(hal_power_stats_default, sysfs_leds)
|
||||
|
||||
Reference in New Issue
Block a user