diff --git a/public/recovery.te b/public/recovery.te index fe0b20e4e2e68102bacdefeaca08ee1cb6032865..6e1cc2b02f02e9bf18ff649a82c814a5068af19f 100644 --- a/public/recovery.te +++ b/public/recovery.te @@ -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 };