Allow init to execute services marked with seclabel u:r:su:s0 in userdebug/eng

am: 938ab05d72

Change-Id: If632608a9e7acc6e59b468674207bc80a4833a26
This commit is contained in:
Tom Cherry 2018-08-03 16:07:11 -07:00 committed by android-build-merger
commit 5f49b6a2d6

View file

@ -15,7 +15,12 @@ domain_trans(init, shell_exec, shell)
domain_trans(init, init_exec, ueventd)
domain_trans(init, init_exec, vendor_init)
domain_trans(init, { rootfs toolbox_exec }, modprobe)
# case where logpersistd is actually logcat -f in logd context (nee: logcatd)
userdebug_or_eng(`
# case where logpersistd is actually logcat -f in logd context (nee: logcatd)
domain_auto_trans(init, logcat_exec, logpersist)
# allow init to execute services marked with seclabel u:r:su:s0 in userdebug/eng
allow init su:process transition;
dontaudit init su:process noatsecure;
allow init su:process { siginh rlimitinh };
')