xref: /aosp_15_r20/system/sepolicy/private/misctrl.te (revision e4a36f4174b17bbab9dc043f4a65dc8d87377290)
1# binary for generic misc partition management
2type misctrl, domain, coredomain;
3type misctrl_exec, system_file_type, exec_type, file_type;
4
5init_daemon_domain(misctrl)
6
7allow misctrl misc_block_device:blk_file rw_file_perms;
8allow misctrl block_device:dir r_dir_perms;
9read_fstab(misctrl)
10
11set_prop(misctrl, misctrl_prop)
12
13# bootloader_message tries to find the fstab in the device config path first,
14# but because we've already booted up we can use the ro.boot properties instead,
15# so we can just ignore the SELinux denial.
16dontaudit misctrl sysfs_dt_firmware_android:dir search;
17dontaudit misctrl vendor_property_type:file read;
18