Merge "Allow mke2fs to format virtual block devices in microdroid" am: b8c6055b6f
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1717690 Change-Id: I800caab1d2a660771a3bff8710a2bb828facba81
This commit is contained in:
commit
3a4ca4e4fe
1 changed files with 9 additions and 0 deletions
|
@ -12,6 +12,15 @@ allowxperm e2fs { userdata_block_device metadata_block_device dm_device }:blk_fi
|
|||
BLKSECDISCARD BLKDISCARD BLKPBSZGET BLKDISCARDZEROES BLKROGET
|
||||
};
|
||||
|
||||
# Allow e2fs to format /dev/block/vd*
|
||||
# TODO(b/189165759) move this rule to packages/modules/Virtualization
|
||||
userdebug_or_eng(`
|
||||
allow e2fs vd_device:blk_file rw_file_perms;
|
||||
allowxperm e2fs vd_device:blk_file ioctl {
|
||||
BLKSECDISCARD BLKDISCARD BLKPBSZGET BLKDISCARDZEROES BLKROGET
|
||||
};
|
||||
')
|
||||
|
||||
allow e2fs {
|
||||
proc_filesystems
|
||||
proc_mounts
|
||||
|
|
Loading…
Reference in a new issue