1# Boot control subsystem
2type hal_bootctl_default, domain;
3hal_server_domain(hal_bootctl_default, hal_bootctl)
4
5type hal_bootctl_default_exec, exec_type, vendor_file_type, file_type;
6init_daemon_domain(hal_bootctl_default)
7
8# Needed for ReadDefaultFstab.
9allow hal_bootctl_default proc_cmdline:file r_file_perms;
10allow hal_bootctl_default sysfs_dt_firmware_android:dir search;
11allow hal_bootctl_default sysfs_dt_firmware_android:file r_file_perms;
12
13# ReadDefaultFstab looks for /metadata/gsi/booted. We don't care about getting
14# a GSI-corrected fstab.
15dontaudit hal_bootctl_default metadata_file:dir search;
16
17# Needed for reading/writing misc partition.
18allow hal_bootctl_default block_device:dir search;
19allow hal_bootctl_default misc_block_device:blk_file rw_file_perms;
20