Allow installd to kill profman.

installd needs to kill profman if profman times out.

Bug: 242352919
Test: -
  1. Add an infinate loop to profman.
  2. Run `adb shell pm compile -m speed-profile com.android.chrome`
  3. See profman being killed after 1 minute.

Change-Id: I71761eaab027698de0339d855b9a436b56580ed8
This commit is contained in:
Jiakai Zhang 2023-01-30 09:31:43 +00:00
parent 44785c2623
commit a7774c2cba

View file

@ -47,7 +47,10 @@ get_prop(installd, odsign_prop)
allow installd staging_data_file:file unlink; 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 remove_name rmdir search write getattr };
allow installd { dex2oat dexoptanalyzer }:process { sigkill signal }; allow installd { dex2oat dexoptanalyzer }:process signal;
# installd kills subprocesses if they time out.
allow installd { dex2oat dexoptanalyzer profman }:process sigkill;
# Allow installd manage dirs in /data/misc_ce/0/sdksandbox # Allow installd manage dirs in /data/misc_ce/0/sdksandbox
allow installd sdk_sandbox_system_data_file:dir { create_dir_perms relabelfrom }; allow installd sdk_sandbox_system_data_file:dir { create_dir_perms relabelfrom };