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

Merge changes from topic 'crash_dump_append'

* changes:
  crash_dump: allow appending to pipes.
  Revert "crash_dump: temporarily make permissive."
parents e1101287 5cbed955
No related branches found
No related tags found
No related merge requests found
### HACK: Make crash_dump permissive temporarily to catch denials without breaking backtraces.
userdebug_or_eng(`
permissive crash_dump;
')
...@@ -19,7 +19,10 @@ userdebug_or_eng(` ...@@ -19,7 +19,10 @@ userdebug_or_eng(`
# Use inherited file descriptors # Use inherited file descriptors
allow crash_dump domain:fd use; allow crash_dump domain:fd use;
allow crash_dump domain:fifo_file write;
# Write to the IPC pipe inherited from crashing processes.
# Append to pipes given to us by processes requesting dumps (e.g. dumpstate)
allow crash_dump domain:fifo_file { write append };
r_dir_file(crash_dump, domain) r_dir_file(crash_dump, domain)
allow crash_dump exec_type:file r_file_perms; allow crash_dump exec_type:file r_file_perms;
......
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