2014-02-21 19:45:29 +01:00
|
|
|
# Restricted domain for shell processes spawned by init.
|
|
|
|
# Normally these are shell commands or scripts invoked via sh
|
|
|
|
# from an init*.rc file. No service should ever run in this domain.
|
2014-06-11 13:10:09 +02:00
|
|
|
type init_shell, domain;
|
2013-05-06 22:24:27 +02:00
|
|
|
domain_auto_trans(init, shell_exec, init_shell)
|
2014-06-11 13:10:09 +02:00
|
|
|
permissive_or_unconfined(init_shell)
|
2014-06-19 15:07:17 +02:00
|
|
|
|
|
|
|
# Run helpers from / or /system without changing domain.
|
|
|
|
allow init_shell rootfs:file execute_no_trans;
|
|
|
|
allow init_shell system_file:file execute_no_trans;
|