Tri Vo | bc8dc3a | 2019-05-26 13:17:08 -0700 | [diff] [blame^] | 1 | type e2fs, domain, coredomain; |
| 2 | type e2fs_exec, system_file_type, exec_type, file_type; |
| 3 | |
| 4 | allow e2fs devpts:chr_file { read write getattr ioctl }; |
| 5 | |
| 6 | allow e2fs dev_type:blk_file getattr; |
| 7 | allow e2fs block_device:dir search; |
| 8 | allow e2fs userdata_block_device:blk_file rw_file_perms; |
| 9 | allow e2fs metadata_block_device:blk_file rw_file_perms; |
| 10 | allow e2fs dm_device:blk_file rw_file_perms; |
| 11 | allowxperm e2fs { userdata_block_device metadata_block_device dm_device }:blk_file ioctl { |
| 12 | BLKSECDISCARD BLKDISCARD BLKPBSZGET BLKDISCARDZEROES BLKROGET |
| 13 | }; |
| 14 | |
| 15 | allow e2fs { |
| 16 | proc_filesystems |
| 17 | proc_mounts |
| 18 | proc_swaps |
| 19 | }:file r_file_perms; |
| 20 | |
| 21 | # access /sys/fs/ext4/features |
| 22 | allow e2fs sysfs_fs_ext4_features:dir search; |
| 23 | allow e2fs sysfs_fs_ext4_features:file r_file_perms; |
| 24 | |
| 25 | # access SELinux context files |
| 26 | allow e2fs file_contexts_file:file r_file_perms; |