1 type e2fs, domain, coredomain; 2 type e2fs_exec, 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 11 allow e2fs { 12 proc_filesystems 13 proc_mounts 14 proc_swaps 15 }:file r_file_perms; 16 17 # access /sys/fs/ext4/features 18 allow e2fs sysfs_fs_ext4_features:dir search; 19 allow e2fs sysfs_fs_ext4_features:file r_file_perms; 20 21 # access sselinux context files 22 allow e2fs file_contexts_file:file { getattr open read }; 23