Allow zygote to read storage properties

Bug: 151316657
Test: Able to boot without warnings
Change-Id: If53e472b560d5cf73c145d668bc462ca6881fe4e
This commit is contained in:
Ricky Wai 2020-06-30 10:27:58 +01:00
parent eed690476b
commit 15fb633cb5

View file

@ -172,6 +172,9 @@ allow zygote tmpfs:dir r_dir_perms;
allow zygote same_process_hal_file:file { execute read open getattr map }; allow zygote same_process_hal_file:file { execute read open getattr map };
# Allow the zygote to access storage properties to check if sdcardfs is enabled.
get_prop(zygote, storage_config_prop);
# Let the zygote access overlays so it can initialize the AssetManager. # Let the zygote access overlays so it can initialize the AssetManager.
get_prop(zygote, overlay_prop) get_prop(zygote, overlay_prop)
get_prop(zygote, exported_overlay_prop) get_prop(zygote, exported_overlay_prop)