2024-02-16 23:32:02 +01:00
|
|
|
# binary for generic misc partition management
|
|
|
|
type misctrl, domain, coredomain;
|
|
|
|
type misctrl_exec, system_file_type, exec_type, file_type;
|
|
|
|
|
|
|
|
init_daemon_domain(misctrl)
|
|
|
|
|
|
|
|
allow misctrl misc_block_device:blk_file rw_file_perms;
|
|
|
|
allow misctrl block_device:dir r_dir_perms;
|
|
|
|
read_fstab(misctrl)
|
|
|
|
|
2024-02-16 23:38:26 +01:00
|
|
|
set_prop(misctrl, misctrl_prop)
|
|
|
|
|
2024-02-16 23:32:02 +01:00
|
|
|
# bootloader_message tries to find the fstab in the device config path first,
|
|
|
|
# but because we've already booted up we can use the ro.boot properties instead,
|
|
|
|
# so we can just ignore the SELinux denial.
|
|
|
|
dontaudit misctrl sysfs_dt_firmware_android:dir search;
|
|
|
|
dontaudit misctrl vendor_property_type:file read;
|