Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemSEPolicy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemSEPolicy
Commits
9a92cf8c
Commit
9a92cf8c
authored
7 years ago
by
Jin Qian
Committed by
android-build-merger
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "storaged: allow shell to call dumpsys storaged" am:
eca32251
am:
f81e48b6
am:
fc8bbd7e
am:
7ba028a6
Change-Id: Ic545bb7a00acc0bf0b106ec67d05715f40e3bdd2
parents
6953b867
7ba028a6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
private/shell.te
+3
-0
3 additions, 0 deletions
private/shell.te
private/storaged.te
+4
-0
4 additions, 0 deletions
private/storaged.te
with
7 additions
and
0 deletions
private/shell.te
+
3
−
0
View file @
9a92cf8c
...
@@ -10,3 +10,6 @@ allow shell atrace_exec:file rx_file_perms;
...
@@ -10,3 +10,6 @@ allow shell atrace_exec:file rx_file_perms;
# Run app_process.
# Run app_process.
# XXX Transition into its own domain?
# XXX Transition into its own domain?
app_domain(shell)
app_domain(shell)
# allow shell to call dumpsys storaged
binder_call(shell, storaged)
This diff is collapsed.
Click to expand it.
private/storaged.te
+
4
−
0
View file @
9a92cf8c
...
@@ -21,6 +21,10 @@ userdebug_or_eng(`
...
@@ -21,6 +21,10 @@ userdebug_or_eng(`
allow storaged debugfs_mmc:file r_file_perms;
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
# Binder permissions
add_service(storaged, storaged_service)
add_service(storaged, storaged_service)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment