Allow artd to kill subprocesses during Pre-reboot Dexopt.

Bug: 311377497
Test: Run and cancel Pre-reboot Dexopt.
Change-Id: I6dd96a3644b66586a59064ed3cf9b3e5bb7ee0c5
This commit is contained in:
Jiakai Zhang 2024-05-28 19:05:26 +01:00
parent 0f6ddab01c
commit c9b01d60cf

View file

@ -159,6 +159,9 @@ allow artd self:global_capability_class_set sys_admin;
domain_auto_trans(artd, derive_classpath_exec, derive_classpath)
domain_auto_trans(artd, odrefresh_exec, odrefresh)
# Allow sending sigkill to subprocesses.
allow artd { derive_classpath odrefresh }:process sigkill;
# Allow accessing Pre-reboot Dexopt files.
allow artd pre_reboot_dexopt_file:dir { getattr search };