Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sepolicy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test
platform
system
sepolicy
Commits
3868557d
Commit
3868557d
authored
6 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Incidentd gets statsd incident section"
parents
c7f56cdc
d2f3d18f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
private/incidentd.te
+4
-0
4 additions, 0 deletions
private/incidentd.te
private/stats.te
+1
-1
1 addition, 1 deletion
private/stats.te
private/statsd.te
+3
-0
3 additions, 0 deletions
private/statsd.te
with
8 additions
and
1 deletion
private/incidentd.te
+
4
−
0
View file @
3868557d
...
@@ -45,6 +45,10 @@ allow incidentd sysfs_batteryinfo:file r_file_perms;
...
@@ -45,6 +45,10 @@ allow incidentd sysfs_batteryinfo:file r_file_perms;
userdebug_or_eng(`allow incidentd pstorefs:dir search');
userdebug_or_eng(`allow incidentd pstorefs:dir search');
userdebug_or_eng(`allow incidentd pstorefs:file r_file_perms');
userdebug_or_eng(`allow incidentd pstorefs:file r_file_perms');
# section id 3023, allow obtaining stats report
allow incidentd stats_service:service_manager find;
binder_call(incidentd, statsd)
# Create and write into /data/misc/incidents
# Create and write into /data/misc/incidents
allow incidentd incident_data_file:dir rw_dir_perms;
allow incidentd incident_data_file:dir rw_dir_perms;
allow incidentd incident_data_file:file create_file_perms;
allow incidentd incident_data_file:file create_file_perms;
...
...
This diff is collapsed.
Click to expand it.
private/stats.te
+
1
−
1
View file @
3868557d
...
@@ -37,10 +37,10 @@ binder_call(statsd, stats)
...
@@ -37,10 +37,10 @@ binder_call(statsd, stats)
### neverallow rules
### neverallow rules
###
###
# Only system_server, system_app, traceur_app, and stats command can find the stats service.
neverallow {
neverallow {
domain
domain
-dumpstate
-dumpstate
-incidentd
-priv_app
-priv_app
-shell
-shell
-stats
-stats
...
...
This diff is collapsed.
Click to expand it.
private/statsd.te
+
3
−
0
View file @
3868557d
...
@@ -14,3 +14,6 @@ domain_auto_trans(statsd, perfetto_exec, perfetto)
...
@@ -14,3 +14,6 @@ domain_auto_trans(statsd, perfetto_exec, perfetto)
allow statsd {
allow statsd {
statscompanion_service
statscompanion_service
}:service_manager find;
}:service_manager find;
# Allow incidentd to obtain the statsd incident section.
allow statsd incidentd:fifo_file write;
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