2019-05-16 23:44:11 +02:00
|
|
|
# vendor_misc_writer
|
|
|
|
type vendor_misc_writer, domain;
|
|
|
|
type vendor_misc_writer_exec, vendor_file_type, exec_type, file_type;
|
|
|
|
|
|
|
|
# Raw writes to misc_block_device
|
|
|
|
allow vendor_misc_writer misc_block_device:blk_file w_file_perms;
|
|
|
|
allow vendor_misc_writer block_device:dir r_dir_perms;
|
|
|
|
|
2019-06-19 23:30:11 +02:00
|
|
|
# Silence the denial when calling libfstab's ReadDefaultFstab, which tries to
|
|
|
|
# load DT fstab.
|
2020-10-07 10:44:58 +02:00
|
|
|
dontaudit vendor_misc_writer proc_cmdline:file r_file_perms;
|
2019-06-19 23:30:11 +02:00
|
|
|
dontaudit vendor_misc_writer sysfs_dt_firmware_android:dir search;
|
2021-02-26 04:17:29 +01:00
|
|
|
dontaudit vendor_misc_writer proc_bootconfig:file r_file_perms;
|
2021-03-22 06:46:12 +01:00
|
|
|
|
|
|
|
# Allow ReadDefaultFstab().
|
|
|
|
read_fstab(vendor_misc_writer)
|