platform_system_sepolicy/public/vendor_misc_writer.te
Adam Shih 4c09b824c7 Suppress error log coming from libfstab operation
vendor_misc_writer includes libfstab, which will carry out libfstab
operations without really needing it to do misc writing. Therefore
I suppress the error here.

Bug: 181277852
Test: boot with no relevant log showing up
Change-Id: Ibadb797799606ec8eba4b4e7b35885bb11cb1ff0
2021-02-26 11:17:29 +08:00

15 lines
682 B
Text

# 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;
# Silence the denial when calling libfstab's ReadDefaultFstab, which tries to
# load DT fstab.
dontaudit vendor_misc_writer gsi_metadata_file:dir search;
dontaudit vendor_misc_writer proc_cmdline:file r_file_perms;
dontaudit vendor_misc_writer metadata_file:dir search;
dontaudit vendor_misc_writer sysfs_dt_firmware_android:dir search;
dontaudit vendor_misc_writer proc_bootconfig:file r_file_perms;