2017-03-23 22:27:32 +01:00
|
|
|
typeattribute init coredomain;
|
|
|
|
|
2016-07-22 22:13:11 +02:00
|
|
|
tmpfs_domain(init)
|
|
|
|
|
|
|
|
# Transitions to seclabel processes in init.rc
|
2016-12-15 21:36:45 +01:00
|
|
|
domain_trans(init, rootfs, healthd)
|
2016-07-22 22:13:11 +02:00
|
|
|
domain_trans(init, rootfs, slideshow)
|
2018-09-08 00:05:33 +02:00
|
|
|
domain_auto_trans(init, charger_exec, charger)
|
2017-05-02 22:45:08 +02:00
|
|
|
domain_auto_trans(init, e2fs_exec, e2fs)
|
2018-11-29 22:07:40 +01:00
|
|
|
domain_auto_trans(init, bpfloader_exec, bpfloader)
|
|
|
|
|
2016-07-22 22:13:11 +02:00
|
|
|
recovery_only(`
|
2018-09-08 00:05:33 +02:00
|
|
|
# Files in recovery image are labeled as rootfs.
|
2017-07-31 12:38:28 +02:00
|
|
|
domain_trans(init, rootfs, adbd)
|
2018-09-08 00:05:33 +02:00
|
|
|
domain_trans(init, rootfs, charger)
|
2018-05-29 19:54:16 +02:00
|
|
|
domain_trans(init, rootfs, fastbootd)
|
2016-07-22 22:13:11 +02:00
|
|
|
domain_trans(init, rootfs, recovery)
|
|
|
|
')
|
|
|
|
domain_trans(init, shell_exec, shell)
|
|
|
|
domain_trans(init, init_exec, ueventd)
|
2017-09-28 23:34:36 +02:00
|
|
|
domain_trans(init, init_exec, vendor_init)
|
2017-06-03 01:09:26 +02:00
|
|
|
domain_trans(init, { rootfs toolbox_exec }, modprobe)
|
2016-07-22 22:13:11 +02:00
|
|
|
userdebug_or_eng(`
|
2018-08-03 19:49:20 +02:00
|
|
|
# case where logpersistd is actually logcat -f in logd context (nee: logcatd)
|
2016-08-10 20:10:02 +02:00
|
|
|
domain_auto_trans(init, logcat_exec, logpersist)
|
2018-08-03 19:49:20 +02:00
|
|
|
|
|
|
|
# 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 };
|
2016-07-22 22:13:11 +02:00
|
|
|
')
|
2018-11-28 00:47:12 +01:00
|
|
|
|
|
|
|
# Allow the BoringSSL self test to request a reboot upon failure
|
|
|
|
set_prop(init, powerctl_prop)
|