Merge "[ALPS04667690] Add policy for format as internal" into alps-trunk-q0.basic

Change-Id: I4bf5402d3eacd71d29315c3edaa3beb1cd145617
MTK-Commit-Id: 987fd4ac8e35add870490cb4e47730a8070322e8
This commit is contained in:
Denis Hsu 2020-01-18 10:17:20 +08:00 committed by Gerrit Code Review
commit a1afe0c47b

View File

@ -31,3 +31,16 @@ dontaudit vold nvdata_file:dir r_dir_perms;
dontaudit vold nvcfg_file:dir r_dir_perms;
dontaudit vold protect_f_data_file:dir r_dir_perms;
dontaudit vold protect_s_data_file:dir r_dir_perms;
# execute mke2fs when format as internal
allow vold cache_block_device:blk_file getattr;
allowxperm vold dm_device:blk_file ioctl {
BLKSECDISCARD BLKDISCARD BLKPBSZGET BLKDISCARDZEROES BLKROGET
};
allow vold nvcfg_block_device:blk_file getattr;
allow vold nvdata_device:blk_file getattr;
allow vold proc_swaps:file r_file_perms;
allow vold protect1_block_device:blk_file getattr;
allow vold protect2_block_device:blk_file getattr;
allow vold proc_swaps:file getattr;
allow vold swap_block_device:blk_file getattr;