Skip to content
Snippets Groups Projects
Commit d28ac521 authored by Nick Kralevich's avatar Nick Kralevich Committed by Gerrit Code Review
Browse files

Merge "Clarify init_shell, shell, and su domain usage."

parents 49d713af b3cb9695
Branches
Tags
No related merge requests found
# Restricted domain for shell processes spawned by init # 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.
type init_shell, domain, shelldomain; type init_shell, domain, shelldomain;
domain_auto_trans(init, shell_exec, init_shell) domain_auto_trans(init, shell_exec, init_shell)
unconfined_domain(init_shell) unconfined_domain(init_shell)
......
# Domain for shell processes spawned by ADB # Domain for shell processes spawned by ADB or console service.
type shell, domain, shelldomain, mlstrustedsubject; type shell, domain, shelldomain, mlstrustedsubject;
type shell_exec, exec_type, file_type; type shell_exec, exec_type, file_type;
......
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
type su_exec, exec_type, file_type; type su_exec, exec_type, file_type;
userdebug_or_eng(` userdebug_or_eng(`
# Domain used for su processes, as well as for adbd and adb shell
# after performing an adb root command. The domain definition is
# wrapped to ensure that it does not exist at all on -user builds.
type su, domain; type su, domain;
domain_auto_trans(shell, su_exec, su) domain_auto_trans(shell, su_exec, su)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment