blob: 51dbd07e9f40653193adb270ae37b2cd5e77106e [file] [log] [blame]
Stephen Smalleyb3cb9692014-02-21 13:45:29 -05001# Restricted domain for shell processes spawned by init.
2# Normally these are shell commands or scripts invoked via sh
3# from an init*.rc file. No service should ever run in this domain.
Stephen Smalley42fb8242014-06-11 07:10:09 -04004type init_shell, domain;
Alex Klyubin81991232013-05-06 13:24:27 -07005domain_auto_trans(init, shell_exec, init_shell)
Stephen Smalley42fb8242014-06-11 07:10:09 -04006permissive_or_unconfined(init_shell)
Stephen Smalleyf3c3a1a2014-06-19 09:07:17 -04007
8# Run helpers from / or /system without changing domain.
9allow init_shell rootfs:file execute_no_trans;
10allow init_shell system_file:file execute_no_trans;