diff --git a/public/hal_bootctl.te b/public/hal_bootctl.te index 1ef10a7ac..f9b50b032 100644 --- a/public/hal_bootctl.te +++ b/public/hal_bootctl.te @@ -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); diff --git a/vendor/hal_bootctl_default.te b/vendor/hal_bootctl_default.te index 2b9431307..f94cf5ff5 100644 --- a/vendor/hal_bootctl_default.te +++ b/vendor/hal_bootctl_default.te @@ -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;