Allow mkfs/fsck for vendor partitons
Change-Id: I425c56edf9b12f1b86994f58100ecc9a8e1b58b2 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
This commit is contained in:
parent
8b58ce3b69
commit
0cf7210eb1
2 changed files with 11 additions and 0 deletions
8
vendor/e2fs.te
vendored
Normal file
8
vendor/e2fs.te
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
allow e2fs persist_block_device:blk_file rw_file_perms;
|
||||||
|
allow e2fs efs_block_device:blk_file rw_file_perms;
|
||||||
|
allow e2fs modem_userdata_block_device:blk_file rw_file_perms;
|
||||||
|
allowxperm e2fs { persist_block_device efs_block_device modem_userdata_block_device }:blk_file ioctl {
|
||||||
|
BLKSECDISCARD BLKDISCARD BLKPBSZGET BLKDISCARDZEROES BLKROGET
|
||||||
|
};
|
||||||
|
allow e2fs sysfs_scsi_devices_0000:dir r_dir_perms;
|
||||||
|
allow e2fs sysfs_scsi_devices_0000:file r_file_perms;
|
3
vendor/fsck.te
vendored
3
vendor/fsck.te
vendored
|
@ -1,2 +1,5 @@
|
||||||
|
allow fsck persist_block_device:blk_file rw_file_perms;
|
||||||
|
allow fsck efs_block_device:blk_file rw_file_perms;
|
||||||
|
allow fsck modem_userdata_block_device:blk_file rw_file_perms;
|
||||||
allow fsck sysfs_scsi_devices_0000:dir r_dir_perms;
|
allow fsck sysfs_scsi_devices_0000:dir r_dir_perms;
|
||||||
allow fsck sysfs_scsi_devices_0000:file r_file_perms;
|
allow fsck sysfs_scsi_devices_0000:file r_file_perms;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue