Reland "runas/shell.te: remove {kernel} to perf_event_open"
This reverts commit 1b3cf9171a549200154dae5a6e5b3998efbcfa9d.
Also allow transferring from runas_app domain to simpleperf domain,
when executing /system/bin/simpleperf in run-as.
Bug: 390626125
Test: run CtsSimpleperfTestCases
Change-Id: I78aa529b3dafaeebc1531069d31c43992d659ba5
diff --git a/private/simpleperf.te b/private/simpleperf.te
index 9c70060..6fff07c 100644
--- a/private/simpleperf.te
+++ b/private/simpleperf.te
@@ -14,7 +14,7 @@
untrusted_app_all
}')
-domain_auto_trans({ simpleperf_profileable_apps -runas_app }, simpleperf_exec, simpleperf)
+domain_auto_trans(simpleperf_profileable_apps, simpleperf_exec, simpleperf)
# When running in this domain, simpleperf is scoped to profiling an individual
# app. The necessary MAC permissions for profiling are more maintainable and