Skip to content
Snippets Groups Projects
Commit f97026db authored by Hridya Valsaraju's avatar Hridya Valsaraju
Browse files

Allow fastbootd to wipe userdata.

This is needed for flashall -w to wipe userdata.
Bug: 113648914
Test: fastboot erase userdata

Change-Id: I7e89cf885c9a67c78de67b79ed16af7e50104bf7
parent 7b229405
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,11 @@ recovery_only(`
allow fastbootd misc_block_device:blk_file rw_file_perms;
# Required to wipe userdata
allow fastbootd userdata_block_device:blk_file { w_file_perms getattr ioctl };
allowxperm fastbootd userdata_block_device:blk_file ioctl { BLKGETSIZE64 BLKSECDISCARD
BLKDISCARD };
allow fastbootd proc_cmdline:file r_file_perms;
allow fastbootd rootfs:dir r_dir_perms;
allow fastbootd sysfs_dt_firmware_android:file r_file_perms;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment