Merge "gs101: Allow BootControl to access sysfs blow_ar"

This commit is contained in:
Jidong Sun 2022-06-15 20:53:26 +00:00 committed by Gerrit Code Review
commit 81d0d5f20f
3 changed files with 7 additions and 0 deletions

View file

@ -200,3 +200,6 @@ type sysfs_sjtag, fs_type, sysfs_type;
userdebug_or_eng(`
typeattribute sysfs_sjtag mlstrustedobject;
')
# BootControl
type sysfs_bootctl, sysfs_type, fs_type;

View file

@ -373,3 +373,6 @@ genfscon sysfs /devices/platform/25c40000.etm u:object_r:sysfs_devices_cs_etm
genfscon sysfs /devices/platform/25d40000.etm u:object_r:sysfs_devices_cs_etm:s0
genfscon sysfs /devices/platform/25e40000.etm u:object_r:sysfs_devices_cs_etm:s0
genfscon sysfs /devices/platform/25f40000.etm u:object_r:sysfs_devices_cs_etm:s0
# BootControl
genfscon sysfs /kernel/boot_control/blow_ar u:object_r:sysfs_bootctl:s0

View file

@ -1,3 +1,4 @@
allow hal_bootctl_default sda_block_device:blk_file rw_file_perms;
allow hal_bootctl_default devinfo_block_device:blk_file rw_file_perms;
allow hal_bootctl_default sysfs_ota:file rw_file_perms;
allow hal_bootctl_default sysfs_bootctl:file rw_file_perms;