Skip to content
Snippets Groups Projects
Commit d765766b authored by Josh Gao's avatar Josh Gao Committed by Gerrit Code Review
Browse files

Merge changes from topic 'debuggerd_ambient'

* changes:
  crash_dump: dontaudit CAP_SYS_PTRACE denial.
  crash_dump: don't allow CAP_SYS_PTRACE or CAP_KILL.
parents 46e5a060 943d7ed5
No related branches found
No related tags found
No related merge requests found
type crash_dump, domain; type crash_dump, domain;
type crash_dump_exec, exec_type, file_type; type crash_dump_exec, exec_type, file_type;
allow crash_dump self:capability { sys_ptrace kill };
allow crash_dump { allow crash_dump {
domain domain
-init -init
...@@ -9,6 +8,11 @@ allow crash_dump { ...@@ -9,6 +8,11 @@ allow crash_dump {
-keystore -keystore
-logd -logd
}:process { ptrace signal sigchld sigstop sigkill }; }:process { ptrace signal sigchld sigstop sigkill };
# crash_dump might inherit CAP_SYS_PTRACE from a privileged process,
# which will result in an audit log even when it's allowed to trace.
dontaudit crash_dump self:capability { sys_ptrace };
userdebug_or_eng(` userdebug_or_eng(`
allow crash_dump logd:process { ptrace signal sigchld sigstop sigkill }; allow crash_dump logd:process { ptrace signal sigchld sigstop sigkill };
') ')
......
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