blob: b8b0066d049cc1cf1f21dd7f5ac435d6785acb41 [file] [log] [blame]
Alex Klyubinf5446eb2017-03-23 14:27:32 -07001typeattribute init coredomain;
2
dcashmancc39f632016-07-22 13:13:11 -07003tmpfs_domain(init)
4
5# Transitions to seclabel processes in init.rc
Sandeep Patildc082452016-11-01 13:49:10 -07006domain_trans(init, rootfs, charger)
Sandeep Patil137a13d2016-12-15 12:36:45 -08007domain_trans(init, rootfs, healthd)
dcashmancc39f632016-07-22 13:13:11 -07008domain_trans(init, rootfs, slideshow)
Jin Qian4de505b2017-05-02 13:45:08 -07009domain_auto_trans(init, e2fs_exec, e2fs)
dcashmancc39f632016-07-22 13:13:11 -070010recovery_only(`
Bowgo Tsai5846c792017-07-31 18:38:28 +080011 domain_trans(init, rootfs, adbd)
Jerry Zhang1d85efa2018-05-29 10:54:16 -070012 domain_trans(init, rootfs, fastbootd)
dcashmancc39f632016-07-22 13:13:11 -070013 domain_trans(init, rootfs, recovery)
14')
15domain_trans(init, shell_exec, shell)
16domain_trans(init, init_exec, ueventd)
Tom Cherry621c24c2017-09-28 14:34:36 -070017domain_trans(init, init_exec, vendor_init)
Sandeep Patile41af202017-06-02 16:09:26 -070018domain_trans(init, { rootfs toolbox_exec }, modprobe)
dcashmancc39f632016-07-22 13:13:11 -070019userdebug_or_eng(`
Tom Cherry938ab052018-08-03 10:49:20 -070020 # case where logpersistd is actually logcat -f in logd context (nee: logcatd)
Mark Salyzynda62cb42016-08-10 11:10:02 -070021 domain_auto_trans(init, logcat_exec, logpersist)
Tom Cherry938ab052018-08-03 10:49:20 -070022
23 # allow init to execute services marked with seclabel u:r:su:s0 in userdebug/eng
24 allow init su:process transition;
25 dontaudit init su:process noatsecure;
26 allow init su:process { siginh rlimitinh };
dcashmancc39f632016-07-22 13:13:11 -070027')
Branden Archerd36b1d52018-11-27 15:47:12 -080028
29# Allow the BoringSSL self test to request a reboot upon failure
30set_prop(init, powerctl_prop)