Feature - Userdata Checkpoint We will format the metadata partition(md_udc) in first boot-up, because it is a RAW data part, so giving the permission grant to e2fs. MTK-Commit-Id: de837a8e097cad8067f5d653370545b51f8d457e Change-Id: Iaebc665979ab36422b6df846a2f05450c222d1f5 CR-Id: ALPS04304578 Feature: [Android Default] F2FS File System
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
# ==============================================
|
|
# MTK Policy Rule
|
|
# ==============================================
|
|
|
|
# Date : WK17.32
|
|
# Operation : Migration
|
|
# Purpose : create ext4 images for protect1/protect2/persist/nvdata/nvcfg block devices.
|
|
allow e2fs protect1_block_device:blk_file rw_file_perms;
|
|
allow e2fs protect2_block_device:blk_file rw_file_perms;
|
|
allow e2fs persist_block_device:blk_file rw_file_perms;
|
|
allow e2fs nvdata_device:blk_file rw_file_perms;
|
|
allow e2fs nvcfg_block_device:blk_file rw_file_perms;
|
|
|
|
allow e2fs devpts:chr_file {read write};
|
|
|
|
# Date : WK18.23
|
|
# Operation: P migration
|
|
# Purpose : Allow mke2fs to format userdata and cache partition
|
|
allow e2fs cache_block_device:blk_file rw_file_perms;
|
|
allow e2fs userdata_block_device:blk_file rw_file_perms;
|
|
|
|
# Date : WK19.11
|
|
# Operation: Q migration
|
|
# Purpose : Allow mke2fs to use ioctl/ioctlcmd
|
|
allowxperm e2fs protect1_block_device:blk_file ioctl BLKPBSZGET;
|
|
allowxperm e2fs protect2_block_device:blk_file ioctl BLKPBSZGET;
|
|
|
|
# Date : WK19.23
|
|
# Operation: Q migration
|
|
# Purpose : Allow format /metadata for UDC
|
|
allow e2fs metadata_block_device:blk_file rw_file_perms;
|