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
bf7a5bd6
Commit
bf7a5bd6
authored
7 years ago
by
Narayan Kamath
Committed by
android-build-merger
7 years ago
Browse files
Options
Downloads
Plain Diff
SEPolicy: Allow app / system_server to write to dumpstate pipes. am:
a34781ae
am:
32c7000e
am:
b25e8823
Change-Id: I778011a48800ace4d865813b148efcdd88d166bb
parents
6d9f42f0
b25e8823
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
private/app.te
+5
-1
5 additions, 1 deletion
private/app.te
private/system_server.te
+3
-1
3 additions, 1 deletion
private/system_server.te
with
8 additions
and
2 deletions
private/app.te
+
5
−
1
View file @
bf7a5bd6
...
@@ -150,9 +150,13 @@ allow appdomain anr_data_file:file { open append };
...
@@ -150,9 +150,13 @@ allow appdomain anr_data_file:file { open append };
# domain socket.
# domain socket.
#
#
# Allow apps to connect and write to the tombstoned java trace socket in
# Allow apps to connect and write to the tombstoned java trace socket in
# order to dump their traces.
# order to dump their traces. Also allow them to append traces to pipes
# created by dumptrace. (Also see the rules below where they are given
# additional permissions to dumpstate pipes for other aspects of bug report
# creation).
unix_socket_connect(appdomain, tombstoned_java_trace, tombstoned)
unix_socket_connect(appdomain, tombstoned_java_trace, tombstoned)
allow appdomain tombstoned:fd use;
allow appdomain tombstoned:fd use;
allow appdomain dumpstate:fifo_file append;
# Allow apps to send dump information to dumpstate
# Allow apps to send dump information to dumpstate
allow appdomain dumpstate:fd use;
allow appdomain dumpstate:fd use;
...
...
This diff is collapsed.
Click to expand it.
private/system_server.te
+
3
−
1
View file @
bf7a5bd6
...
@@ -342,9 +342,11 @@ allow system_server anr_data_file:file create_file_perms;
...
@@ -342,9 +342,11 @@ allow system_server anr_data_file:file create_file_perms;
# domain socket.
# domain socket.
#
#
# Allow system_server to connect and write to the tombstoned java trace socket in
# Allow system_server to connect and write to the tombstoned java trace socket in
# order to dump its traces.
# order to dump its traces. Also allow the system server to write its traces to
# dumpstate during bugreport capture.
unix_socket_connect(system_server, tombstoned_java_trace, tombstoned)
unix_socket_connect(system_server, tombstoned_java_trace, tombstoned)
allow system_server tombstoned:fd use;
allow system_server tombstoned:fd use;
allow system_server dumpstate:fifo_file append;
# Read /data/misc/incidents - only read. The fd will be sent over binder,
# Read /data/misc/incidents - only read. The fd will be sent over binder,
# with no DAC access to it, for dropbox to read.
# with no DAC access to it, for dropbox to read.
...
...
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