Merge "Add proper permission for AIDL bootcontrol server"

This commit is contained in:
Kelvin Zhang 2022-06-23 23:44:39 +00:00 committed by Gerrit Code Review
commit f70d708544
2 changed files with 7 additions and 0 deletions

View file

@ -5,3 +5,6 @@ binder_use(hal_bootctl_server)
hal_attribute_hwservice(hal_bootctl, hal_bootctl_hwservice)
allow hal_bootctl_server proc_bootconfig:file r_file_perms;
# Needed to wait for AIDL hal services
hal_attribute_service(hal_bootctl, hal_bootctl_service);

View file

@ -14,3 +14,7 @@ read_fstab(hal_bootctl_default)
# Needed for reading/writing misc partition.
allow hal_bootctl_default block_device:dir search;
allow hal_bootctl_default misc_block_device:blk_file rw_file_perms;
# Needed for writing to kernel log
allow hal_bootctl_default kmsg_device:chr_file open;
allow hal_bootctl_default kmsg_device:chr_file write;