hardwareinfo: add sepolicy for SoC
Bug: 208721710 Test: search avc in logcat Change-Id: I3828d39981666db98e6a34aa70ae39b7f126e495 Signed-off-by: Denny cy Lee <dennycylee@google.com>
This commit is contained in:
parent
362074c629
commit
92d0030e6a
4 changed files with 8 additions and 4 deletions
|
@ -1,4 +0,0 @@
|
|||
# b/208721710
|
||||
dontaudit hardware_info_app sysfs:file { getattr };
|
||||
dontaudit hardware_info_app sysfs:file { open };
|
||||
dontaudit hardware_info_app sysfs:file { read };
|
|
@ -43,6 +43,7 @@ type sysfs_chargelevel, sysfs_type, fs_type;
|
|||
type sysfs_mfc, sysfs_type, fs_type;
|
||||
type sysfs_cpu, sysfs_type, fs_type;
|
||||
type sysfs_odpm, sysfs_type, fs_type;
|
||||
type sysfs_soc, sysfs_type, fs_type;
|
||||
|
||||
# debugfs
|
||||
type debugfs_f2fs, debugfs_type, fs_type;
|
||||
|
|
|
@ -24,6 +24,9 @@ genfscon sysfs /devices/platform/17000080.devfreq_bo/devfreq/17000080.devfreq_bo
|
|||
genfscon sysfs /devices/platform/28000000.mali/time_in_state u:object_r:sysfs_cpu:s0
|
||||
genfscon sysfs /devices/platform/28000000.mali/uid_time_in_state u:object_r:sysfs_cpu:s0
|
||||
|
||||
genfscon sysfs /devices/soc0/machine u:object_r:sysfs_soc:s0
|
||||
genfscon sysfs /devices/soc0/revision u:object_r:sysfs_soc:s0
|
||||
|
||||
# Touch
|
||||
genfscon sysfs /devices/platform/10d10000.spi/spi_master/spi0/spi0.0/synaptics_tcm.0/sysfs u:object_r:sysfs_touch:s0
|
||||
genfscon sysfs /devices/virtual/sec/tsp u:object_r:sysfs_touch:s0
|
||||
|
|
|
@ -17,3 +17,7 @@ allow hardware_info_app sysfs_batteryinfo:file r_file_perms;
|
|||
# Display
|
||||
allow hardware_info_app sysfs_display:dir search;
|
||||
allow hardware_info_app sysfs_display:file r_file_perms;
|
||||
|
||||
# SoC
|
||||
allow hardware_info_app sysfs_soc:file r_file_perms;
|
||||
allow hardware_info_app sysfs_chip_id:file r_file_perms;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue