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
|
|
|
|
domain_trans(init, rootfs, adbd)
|
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)
|
|
|
|
recovery_only(`
|
|
|
|
domain_trans(init, rootfs, recovery)
|
|
|
|
')
|
|
|
|
domain_trans(init, shell_exec, shell)
|
|
|
|
domain_trans(init, init_exec, ueventd)
|
|
|
|
domain_trans(init, init_exec, watchdogd)
|
2017-05-22 21:09:14 +02:00
|
|
|
domain_trans(init, { rootfs toolbox_exec vendor_toolbox_exec }, modprobe)
|
2016-07-22 22:13:11 +02:00
|
|
|
# case where logpersistd is actually logcat -f in logd context (nee: logcatd)
|
|
|
|
userdebug_or_eng(`
|
2016-08-10 20:10:02 +02:00
|
|
|
domain_auto_trans(init, logcat_exec, logpersist)
|
2016-07-22 22:13:11 +02:00
|
|
|
')
|
2017-02-13 17:48:51 +01:00
|
|
|
|
|
|
|
# Creating files on sysfs is impossible so this isn't a threat
|
|
|
|
# Sometimes we have to write to non-existent files to avoid conditional
|
|
|
|
# init behavior. See b/35303861 for an example.
|
|
|
|
dontaudit init sysfs:dir write;
|