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

Merge "Make sure exec_type is assigned to all entrypoint types."

parents 5c947234 01301549
No related branches found
No related tags found
No related merge requests found
......@@ -138,3 +138,6 @@ neverallow { domain -relabeltodomain } *:dir_file_class_set relabelto;
# Only init should be able to load SELinux policies
neverallow { domain -init } kernel:security load_policy;
# Ensure that all entrypoint executables are in exec_type.
neverallow domain { file_type -exec_type }:file entrypoint;
type ping, domain;
permissive ping;
type ping_exec, file_type;
type ping_exec, exec_type, file_type;
domain_auto_trans(shell, ping_exec, ping)
unconfined_domain(ping)
type runas, domain;
type runas_exec, file_type;
type runas_exec, exec_type, file_type;
permissive runas;
unconfined_domain(runas)
......
# Domain for shell processes spawned by ADB
type shell, domain;
type shell_exec, file_type;
type shell_exec, exec_type, file_type;
unconfined_domain(shell)
# Run app_process.
......
type su, domain;
permissive su;
type su_exec, file_type;
type su_exec, exec_type, file_type;
domain_auto_trans(shell, su_exec, su)
# su is unconfined.
......
# File types must be defined for file_contexts.
type su_exec, file_type;
type su_exec, exec_type, file_type;
# No allow rules
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment