Allow oom adjuster to set sched group for VM processes
Bug: 375058190
Test: run Linux terminal, and then go to launcher. check the below
3:cpuset:/foreground
2:cpu:/
1:blkio:/
0::/uid_1010291/pid_9233
ensure that the cpuset is in foreground, not in top-app.
Change-Id: I860ac20ee74dbef2eb8fe2e223b5b6948d7ca156
diff --git a/private/system_server.te b/private/system_server.te
index f39668e..9637f15 100644
--- a/private/system_server.te
+++ b/private/system_server.te
@@ -198,6 +198,8 @@
allow system_server hal_camera:process { getsched setsched };
allow system_server mediaserver:process { getsched setsched };
allow system_server bootanim:process { getsched setsched };
+# Set scheduling info for VMs (b/375058190)
+allow system_server { virtualizationmanager crosvm }:process { getsched setsched };
# Set scheduling info for psi monitor thread.
# TODO: delete this line b/131761776