Merge "gs101-sepolicy: Allow dumping vendor groups values" into sc-dev

This commit is contained in:
Rick Yiu 2021-05-28 01:16:34 +00:00 committed by Android (Google) Code Review
commit 6c5779d0af
3 changed files with 7 additions and 0 deletions

View file

@ -144,6 +144,7 @@ type sysfs_edgetpu, sysfs_type, fs_type;
# Vendor sched files
type sysfs_vendor_sched, sysfs_type, fs_type;
type proc_vendor_sched, proc_type, fs_type;
# GPS
type vendor_gps_file, file_type, data_file_type;

View file

@ -164,6 +164,8 @@ genfscon sysfs /kernel/vendor_sched/uclamp_threshold u
genfscon sysfs /kernel/vendor_sched/uclamp_util_diff_stats u:object_r:sysfs_vendor_sched:s0
genfscon sysfs /kernel/vendor_sched/util_threshold u:object_r:sysfs_vendor_sched:s0
genfscon proc /vendor_sched u:object_r:proc_vendor_sched:s0
# GPS
genfscon sysfs /devices/platform/10940000.spi/spi_master/spi5/spi5.0/nstandby u:object_r:sysfs_gps:s0

View file

@ -93,6 +93,10 @@ binder_call(hal_dumpstate_default, hal_graphics_composer_default);
allow hal_dumpstate_default sysfs_display:dir r_dir_perms;
allow hal_dumpstate_default sysfs_display:file r_file_perms;
allow hal_dumpstate_default sysfs_vendor_sched:file read;
allow hal_dumpstate_default proc_vendor_sched:dir r_dir_perms;
allow hal_dumpstate_default proc_vendor_sched:file r_file_perms;
userdebug_or_eng(`
allow hal_dumpstate_default mnt_vendor_file:dir search;
allow hal_dumpstate_default ramdump_vendor_mnt_file:dir search;