platform_system_sepolicy/private/perfprofd.te
Kalesh Singh 1fc57087b4 Add core domain attribute to perfprofd for all targets
We want "vendor domain" which is referred to as { domain -coredomain
-appdomain }, to behave the same on user vs userdebug builds.

Bug: 134161662
Test: m selinux_policy / Check logcat for denials
Change-Id: If6757c820ed657ba2b70263bb546a456adcc7cff
2019-06-06 20:57:28 +00:00

29 lines
473 B
Text

typeattribute perfprofd coredomain;
userdebug_or_eng(`
init_daemon_domain(perfprofd)
')
neverallow {
domain
userdebug_or_eng(`
-statsd
-system_server
-system_suspend_server
-hal_health_server
-hwservicemanager
')
} perfprofd:binder call;
neverallow perfprofd {
domain
userdebug_or_eng(`
-servicemanager
-statsd
-su
-system_server
-system_suspend_server
-hal_health_server
-hwservicemanager
')
}:binder call;