• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1typeattribute init coredomain;
2
3tmpfs_domain(init)
4
5# Transitions to seclabel processes in init.rc
6domain_trans(init, rootfs, healthd)
7domain_trans(init, rootfs, slideshow)
8domain_auto_trans(init, charger_exec, charger)
9domain_auto_trans(init, e2fs_exec, e2fs)
10domain_auto_trans(init, bpfloader_exec, bpfloader)
11
12recovery_only(`
13  # Files in recovery image are labeled as rootfs.
14  domain_trans(init, rootfs, adbd)
15  domain_trans(init, rootfs, charger)
16  domain_trans(init, rootfs, fastbootd)
17  domain_trans(init, rootfs, recovery)
18')
19domain_trans(init, shell_exec, shell)
20domain_trans(init, init_exec, ueventd)
21domain_trans(init, init_exec, vendor_init)
22domain_trans(init, { rootfs toolbox_exec }, modprobe)
23userdebug_or_eng(`
24  # case where logpersistd is actually logcat -f in logd context (nee: logcatd)
25  domain_auto_trans(init, logcat_exec, logpersist)
26
27  # allow init to execute services marked with seclabel u:r:su:s0 in userdebug/eng
28  allow init su:process transition;
29  dontaudit init su:process noatsecure;
30  allow init su:process { siginh rlimitinh };
31')
32
33# Allow the BoringSSL self test to request a reboot upon failure
34set_prop(init, powerctl_prop)
35