recovery: Add new rules for recursive wipe
We now use a temporary context when mounting /data, so add permissions to do that, and add permissions necessary to do the recursive wipe. Change-Id: Ic925c70f1cf01c8b19a6ac48a9468d6eb9205321
This commit is contained in:
parent
86020c9066
commit
db4fb0ee6b
@ -30,6 +30,10 @@ allow recovery sdcard_posix:file r_file_perms;
|
|||||||
allow recovery recovery_prop:property_service set;
|
allow recovery recovery_prop:property_service set;
|
||||||
|
|
||||||
# recursive rm for wipes... :(
|
# recursive rm for wipes... :(
|
||||||
|
allow app_data_file self:filesystem associate;
|
||||||
|
allow recovery app_data_file:file { read open create write };
|
||||||
|
allow recovery app_data_file:filesystem { relabelto relabelfrom mount unmount };
|
||||||
|
|
||||||
allow recovery file_type:dir { rw_dir_perms rmdir };
|
allow recovery file_type:dir { rw_dir_perms rmdir };
|
||||||
allow recovery file_type:notdevfile_class_set { unlink getattr };
|
allow recovery file_type:notdevfile_class_set { unlink getattr };
|
||||||
# wipe saves and restores the layout version
|
# wipe saves and restores the layout version
|
||||||
|
Loading…
Reference in New Issue
Block a user