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
56de7f37
Commit
56de7f37
authored
7 years ago
by
Bookatz
Committed by
android-build-merger
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Statsd allow shell in selinux policy" am:
5670dd1f
am:
73a2cf20
Change-Id: Iae2c40185b51dfb87c7e444483efde7641cf4d59
parents
4eb7864e
73a2cf20
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
private/shell.te
+3
-0
3 additions, 0 deletions
private/shell.te
private/statsd.te
+5
-0
5 additions, 0 deletions
private/statsd.te
private/system_app.te
+3
-0
3 additions, 0 deletions
private/system_app.te
with
11 additions
and
0 deletions
private/shell.te
+
3
−
0
View file @
56de7f37
...
...
@@ -45,6 +45,9 @@ domain_auto_trans(shell, vendor_shell_exec, vendor_shell)
# when exec()-d by statsd.
domain_auto_trans(shell, perfetto_exec, perfetto)
# Allow shell to run adb shell cmd stats commands. Needed for CTS.
binder_call(shell, statsd);
# Allow shell to read and unlink traces stored in /data/misc/perfetto-traces.
allow shell perfetto_traces_data_file:dir rw_dir_perms;
allow shell perfetto_traces_data_file:file r_file_perms;
This diff is collapsed.
Click to expand it.
private/statsd.te
+
5
−
0
View file @
56de7f37
...
...
@@ -72,6 +72,11 @@ binder_call(statsd, stats)
allow statsd proc_uid_cputime_showstat:file { getattr open read };
hal_client_domain(statsd, hal_power)
# Allow 'adb shell cmd' to upload configs and download output.
allow statsd adbd:fd use;
allow statsd adbd:unix_stream_socket { read write };
###
### neverallow rules
###
...
...
This diff is collapsed.
Click to expand it.
private/system_app.te
+
3
−
0
View file @
56de7f37
...
...
@@ -58,6 +58,9 @@ allow system_app anr_data_file:file create_file_perms;
# Settings need to access app name and icon from asec
allow system_app asec_apk_file:file r_file_perms;
# Allow system apps (like Settings) to interact with statsd
binder_call(system_app, statsd)
# Allow system apps to interact with incidentd
binder_call(system_app, incidentd)
...
...
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