Add read permission to storage_area_keys to installd

Installd needs the read permission on storage area
key directories. This only comes up in testing when the tests
are rerun on the same device.

Bug: 325129836
Test: atest StorageAreaTest
Change-Id: I74c776c52d66492552aaf8b61c7591fb19194f7a
This commit is contained in:
Ellen Arteca 2024-05-01 01:00:02 +00:00
parent 77a8ac9ab4
commit c1508ec794

View file

@ -227,7 +227,7 @@ allow installd vold:fd use;
# on app uninstall, installd deletes the storage area keys for the app
is_flag_enabled(RELEASE_UNLOCKED_STORAGE_API, `
allow installd storage_area_key_file:dir { open search write remove_name lock };
allow installd storage_area_key_file:dir { open search write remove_name lock read };
allow installd storage_area_key_file:file unlink;
')