From 1c7e529242d7ef8dba6b79be798b57287b55a2e7 Mon Sep 17 00:00:00 2001 From: Ellen Arteca Date: Mon, 20 May 2024 18:00:02 +0000 Subject: [PATCH] Fix installd not having permission to delete storage area keys Bug: 325129836 Test: atest StorageAreaTest Change-Id: I6dd1678fe1b184372221b479aaeba17c1ab4788c --- private/installd.te | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/private/installd.te b/private/installd.te index 640d440aa..438746d22 100644 --- a/private/installd.te +++ b/private/installd.te @@ -227,7 +227,10 @@ 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 read }; + allow installd storage_area_key_file:dir { + open search write remove_name + lock read getattr rmdir + }; allow installd storage_area_key_file:file unlink; ')