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:
parent
35abe98124
commit
492f8a39f4
2 changed files with 2 additions and 4 deletions
|
@ -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 { getattr };
|
||||||
dontaudit hal_power_stats_default sysfs_wifi:file { open };
|
dontaudit hal_power_stats_default sysfs_wifi:file { open };
|
||||||
dontaudit hal_power_stats_default sysfs_wifi:file { read };
|
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
|
# allowed to access dislay stats sysfs node
|
||||||
allow hal_power_stats_default sysfs_display:file r_file_perms;
|
allow hal_power_stats_default sysfs_display:file r_file_perms;
|
||||||
|
|
||||||
|
r_dir_file(hal_power_stats_default, sysfs_leds)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue