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-11-01 21:49:10 +01:00
|
|
|
domain_trans(init, rootfs, charger)
|
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)
|
2017-05-02 22:45:08 +02:00
|
|
|
domain_auto_trans(init, e2fs_exec, e2fs)
|
2016-07-22 22:13:11 +02:00
|
|
|
recovery_only(`
|
2017-07-31 12:38:28 +02:00
|
|
|
domain_trans(init, rootfs, adbd)
|
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
|
|
|
')
|