Merge "Allow hal_dumpstate to collect AoC statistics" into sc-dev
This commit is contained in:
commit
7fe9d053e8
4 changed files with 8 additions and 2 deletions
|
@ -1,2 +0,0 @@
|
|||
# b/188752787
|
||||
dontaudit hal_dumpstate_default sysfs_aoc:dir search;
|
1
whitechapel/vendor/google/file.te
vendored
1
whitechapel/vendor/google/file.te
vendored
|
@ -93,6 +93,7 @@ type proc_touch, proc_type, fs_type, mlstrustedobject;
|
|||
type sysfs_touch, sysfs_type, fs_type;
|
||||
|
||||
# AOC
|
||||
type sysfs_aoc_dumpstate, sysfs_type, fs_type;
|
||||
type sysfs_aoc_boottime, sysfs_type, fs_type;
|
||||
type sysfs_aoc_firmware, sysfs_type, fs_type;
|
||||
type sysfs_aoc, sysfs_type, fs_type;
|
||||
|
|
4
whitechapel/vendor/google/genfs_contexts
vendored
4
whitechapel/vendor/google/genfs_contexts
vendored
|
@ -4,6 +4,10 @@ genfscon sysfs /devices/platform/19000000.aoc/firmware u:ob
|
|||
genfscon sysfs /devices/platform/19000000.aoc u:object_r:sysfs_aoc:s0
|
||||
genfscon sysfs /devices/platform/19000000.aoc/reset u:object_r:sysfs_aoc_reset:s0
|
||||
|
||||
genfscon sysfs /devices/platform/19000000.aoc/services u:object_r:sysfs_aoc_dumpstate:s0
|
||||
genfscon sysfs /devices/platform/19000000.aoc/restart_count u:object_r:sysfs_aoc_dumpstate:s0
|
||||
genfscon sysfs /devices/platform/19000000.aoc/coredump_count u:object_r:sysfs_aoc_dumpstate:s0
|
||||
|
||||
# WiFi
|
||||
genfscon sysfs /wifi u:object_r:sysfs_wifi:s0
|
||||
# Battery
|
||||
|
|
|
@ -39,6 +39,9 @@ allow hal_dumpstate_default sscoredump_vendor_data_crashinfo_file:file r_file_pe
|
|||
allow hal_dumpstate_default sysfs_acpm_stats:dir r_dir_perms;
|
||||
allow hal_dumpstate_default sysfs_acpm_stats:file r_file_perms;
|
||||
|
||||
allow hal_dumpstate_default sysfs_aoc:dir r_dir_perms;
|
||||
allow hal_dumpstate_default sysfs_aoc_dumpstate:file r_file_perms;
|
||||
|
||||
allow hal_dumpstate_default sysfs_spi:dir search;
|
||||
allow hal_dumpstate_default sysfs_spi:file rw_file_perms;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue