Merge "Allow hal_dumpstate to collect AoC statistics" into sc-dev

This commit is contained in:
Craig Dooley 2021-06-17 16:32:38 +00:00 committed by Android (Google) Code Review
commit 7fe9d053e8
4 changed files with 8 additions and 2 deletions

View file

@ -1,2 +0,0 @@
# b/188752787
dontaudit hal_dumpstate_default sysfs_aoc:dir search;

View file

@ -93,6 +93,7 @@ type proc_touch, proc_type, fs_type, mlstrustedobject;
type sysfs_touch, sysfs_type, fs_type; type sysfs_touch, sysfs_type, fs_type;
# AOC # AOC
type sysfs_aoc_dumpstate, sysfs_type, fs_type;
type sysfs_aoc_boottime, sysfs_type, fs_type; type sysfs_aoc_boottime, sysfs_type, fs_type;
type sysfs_aoc_firmware, sysfs_type, fs_type; type sysfs_aoc_firmware, sysfs_type, fs_type;
type sysfs_aoc, sysfs_type, fs_type; type sysfs_aoc, sysfs_type, fs_type;

View file

@ -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 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/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 # WiFi
genfscon sysfs /wifi u:object_r:sysfs_wifi:s0 genfscon sysfs /wifi u:object_r:sysfs_wifi:s0
# Battery # Battery

View file

@ -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:dir r_dir_perms;
allow hal_dumpstate_default sysfs_acpm_stats:file r_file_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:dir search;
allow hal_dumpstate_default sysfs_spi:file rw_file_perms; allow hal_dumpstate_default sysfs_spi:file rw_file_perms;