Add proper permission for AIDL bootcontrol server

Bug: 227536004
Test: th
Change-Id: I6aff2742fb23bf7e7ce8d09493f02c4be9262fd3
This commit is contained in:
Kelvin Zhang 2022-06-08 13:46:43 -07:00
parent 850045ae07
commit 65d6bf5391
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;