installd renames dirs in /data/app-staging

before removing a session directory. Hence, it needs more permissions on
staging_data_file.

Bug: 343165326
Test: atest CtsStagedInstallHostTestCases:com.android.tests.stagedinstall.host.StagedInstallTest#testRebootlessUpdate_unsignedPayload_fails
Change-Id: Ic94c74d4ef896129491cee39098f43f33793851f
This commit is contained in:
Jooyung Han 2024-06-03 14:24:46 +09:00
parent 12d84e2484
commit cb51acc9dc

View file

@ -42,7 +42,7 @@ get_prop(installd, odsign_prop)
# Allow installd to delete files in /data/staging
allow installd staging_data_file:file unlink;
allow installd staging_data_file:dir { open read remove_name rmdir search write getattr };
allow installd staging_data_file:dir { open read add_name remove_name rename rmdir search write getattr };
allow installd { dex2oat dexoptanalyzer }:process signal;