Allow recovery to read files with oemfs label

The recovery and update_binary need to access the /oem partition for
devices like sprout.

Bug: 19764039
Change-Id: Ie6cbcae899ad664c6a1809c0d5478031091b6eda
This commit is contained in:
Tao Bao 2015-06-10 15:52:49 -07:00
parent 73f7e76837
commit d245789c34

View file

@ -76,6 +76,9 @@ recovery_only(`
allow recovery cache_file:dir create_dir_perms; allow recovery cache_file:dir create_dir_perms;
allow recovery cache_file:file create_file_perms; allow recovery cache_file:file create_file_perms;
# Read files on /oem.
r_dir_file(recovery, oemfs);
# Reboot the device # Reboot the device
set_prop(recovery, powerctl_prop) set_prop(recovery, powerctl_prop)