Merge "storaged: allow shell to call dumpsys storaged"

This commit is contained in:
Treehugger Robot 2017-03-31 02:29:17 +00:00 committed by Gerrit Code Review
commit eca322517d
2 changed files with 7 additions and 0 deletions

View File

@ -10,3 +10,6 @@ allow shell atrace_exec:file rx_file_perms;
# Run app_process.
# XXX Transition into its own domain?
app_domain(shell)
# allow shell to call dumpsys storaged
binder_call(shell, storaged)

View File

@ -21,6 +21,10 @@ userdebug_or_eng(`
allow storaged debugfs_mmc:file r_file_perms;
')
# Needed to provide debug dump output via dumpsys pipes.
allow storaged shell:fd use;
allow storaged shell:fifo_file write;
# Binder permissions
add_service(storaged, storaged_service)