allow recovery to run mke2fs tools

recovery exec /system/bin/{mke2fs,e2fsdroid} to format userdata

Bug: 35219933
Change-Id: I77e75c2dc55d4bea7984707f27bc215de186c4d1
This commit is contained in:
Jin Qian 2017-06-07 17:41:43 -07:00
parent 8a3aae5c5b
commit 7e57731898

View file

@ -29,6 +29,9 @@ recovery_only(`
allow recovery unlabeled:filesystem ~relabelto;
allow recovery contextmount_type:filesystem relabelto;
# Format ext4 filesystem
allow recovery e2fs_exec:file rx_file_perms;
# Create and relabel files and directories under /system.
allow recovery exec_type:{ file lnk_file } { create_file_perms relabelfrom relabelto };
allow recovery { system_file }:{ file lnk_file } { create_file_perms relabelfrom relabelto };