HardwareInfo: Add sepolicy for battery
12-03 09:57:39.480 7907 7907 I id.hardwareinfo: type=1400 audit(0.0:11): avc: denied { getattr } for path="/sys/devices/platform/google,battery/power_supply/battery/serial_number" dev="sysfs" ino=66176 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:sysfs_batteryinfo:s0 tclass=file permissive=1 12-03 09:57:39.480 7907 7907 I id.hardwareinfo: type=1400 audit(0.0:10): avc: denied { open } for path="/sys/devices/platform/google,battery/power_supply/battery/serial_number" dev="sysfs" ino=66176 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:sysfs_batteryinfo:s0 tclass=file permissive=1 12-03 09:57:39.480 7907 7907 I id.hardwareinfo: type=1400 audit(0.0:9): avc: denied { read } for name="serial_number" dev="sysfs" ino=66176 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:sysfs_batteryinfo:s0 tclass=file permissive=1 Bug:208909060 Test: adb bugreport Change-Id: Ide376401ada800718acf35db11ce79a5e63fe75d Signed-off-by: Ted Lin <tedlin@google.com>
This commit is contained in:
parent
ad89088b6e
commit
66f8039b5d
2 changed files with 4 additions and 4 deletions
|
@ -3,8 +3,4 @@ dontaudit hardware_info_app sysfs:file { getattr };
|
|||
dontaudit hardware_info_app sysfs:file { open };
|
||||
dontaudit hardware_info_app sysfs:file { read };
|
||||
# b/208909060
|
||||
dontaudit hardware_info_app sysfs_batteryinfo:dir { search };
|
||||
dontaudit hardware_info_app sysfs_batteryinfo:file { getattr };
|
||||
dontaudit hardware_info_app sysfs_batteryinfo:file { open };
|
||||
dontaudit hardware_info_app sysfs_batteryinfo:file { read };
|
||||
dontaudit hardware_info_app vendor_regmap_debugfs:dir { search };
|
||||
|
|
|
@ -9,3 +9,7 @@ allow hardware_info_app sysfs_scsi_devices_0000:file r_file_perms;
|
|||
|
||||
# Audio
|
||||
allow hardware_info_app sysfs_pixelstats:file r_file_perms;
|
||||
|
||||
# Batteryinfo
|
||||
allow hardware_info_app sysfs_batteryinfo:dir search;
|
||||
allow hardware_info_app sysfs_batteryinfo:file r_file_perms;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue