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
b862c7ae
Commit
b862c7ae
authored
7 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Statsd: Allow statsd to contact perfprofd in userdebug"
parents
dd7d5a70
488030ee
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
private/perfprofd.te
+4
-0
4 additions, 0 deletions
private/perfprofd.te
private/statsd.te
+3
-0
3 additions, 0 deletions
private/statsd.te
public/perfprofd.te
+1
-5
1 addition, 5 deletions
public/perfprofd.te
with
8 additions
and
5 deletions
private/perfprofd.te
+
4
−
0
View file @
b862c7ae
...
@@ -2,3 +2,7 @@ userdebug_or_eng(`
...
@@ -2,3 +2,7 @@ userdebug_or_eng(`
typeattribute perfprofd coredomain;
typeattribute perfprofd coredomain;
init_daemon_domain(perfprofd)
init_daemon_domain(perfprofd)
')
')
# Only servicemanager, statsd, su and systemserver can communicate.
neverallow { domain userdebug_or_eng(`-statsd') } perfprofd:binder call;
neverallow perfprofd { domain userdebug_or_eng(`-servicemanager -statsd -su -system_server') }:binder call;
This diff is collapsed.
Click to expand it.
private/statsd.te
+
3
−
0
View file @
b862c7ae
...
@@ -30,6 +30,9 @@ allow statsd stats_data_file:file create_file_perms;
...
@@ -30,6 +30,9 @@ allow statsd stats_data_file:file create_file_perms;
binder_call(statsd, appdomain)
binder_call(statsd, appdomain)
binder_call(statsd, healthd)
binder_call(statsd, healthd)
binder_call(statsd, incidentd)
binder_call(statsd, incidentd)
userdebug_or_eng(`
binder_call(statsd, perfprofd)
')
binder_call(statsd, statscompanion_service)
binder_call(statsd, statscompanion_service)
binder_call(statsd, system_server)
binder_call(statsd, system_server)
...
...
This diff is collapsed.
Click to expand it.
public/perfprofd.te
+
1
−
5
View file @
b862c7ae
...
@@ -113,9 +113,5 @@ userdebug_or_eng(`
...
@@ -113,9 +113,5 @@ userdebug_or_eng(`
# Allow perfprofd to submit to dropbox.
# Allow perfprofd to submit to dropbox.
allow perfprofd dropbox_service:service_manager find;
allow perfprofd dropbox_service:service_manager find;
allow perfprofd system_server:binder call;
binder_call(perfprofd, system_server)
# Only servicemanager, su and systemserver can communicate.
neverallow domain perfprofd:binder call;
neverallow perfprofd { domain -servicemanager -su -system_server }:binder call;
')
')
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