diff --git a/private/app.te b/private/app.te
index 3d30348739e9fdad7ea89d0ee3db73f5b9627868..5d3c72237ada99604a1bb82446f35082ba80fce7 100644
--- a/private/app.te
+++ b/private/app.te
@@ -150,9 +150,13 @@ allow appdomain anr_data_file:file { open append };
 # domain socket.
 #
 # 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)
 allow appdomain tombstoned:fd use;
+allow appdomain dumpstate:fifo_file append;
 
 # Allow apps to send dump information to dumpstate
 allow appdomain dumpstate:fd use;
diff --git a/private/system_server.te b/private/system_server.te
index 06cf0aa6173be4520b345410288fcee8a100592d..59631039c1c54fd7c89811ec1f759b0c4f37b089 100644
--- a/private/system_server.te
+++ b/private/system_server.te
@@ -342,9 +342,11 @@ allow system_server anr_data_file:file create_file_perms;
 # domain socket.
 #
 # 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)
 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,
 # with no DAC access to it, for dropbox to read.