Skip to content
Snippets Groups Projects
Commit b25e8823 authored by Narayan Kamath's avatar Narayan Kamath Committed by android-build-merger
Browse files

SEPolicy: Allow app / system_server to write to dumpstate pipes. am: a34781ae

am: 32c7000e

Change-Id: I57d3af7a930f77be74feba88d9875c9b5b90ab7c
parents 51a01817 32c7000e
No related branches found
No related tags found
No related merge requests found
...@@ -121,9 +121,13 @@ allow appdomain anr_data_file:file { open append }; ...@@ -121,9 +121,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;
......
...@@ -312,9 +312,11 @@ allow system_server anr_data_file:file create_file_perms; ...@@ -312,9 +312,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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment