From e1d250891cd78fc6f77bb06622535bcec2d867a1 Mon Sep 17 00:00:00 2001
From: Yao Chen <yaochen@google.com>
Date: Tue, 18 Dec 2018 15:56:29 -0800
Subject: [PATCH] Allow statsd to write stats log events to perfd(running as
 shell) via pipes.

Bug: 120921905
Test: locally tested
Change-Id: I23fda0f83daff8765f7946814a61588dac00c85a
---
 public/statsd.te | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/public/statsd.te b/public/statsd.te
index 100686766..41c4adc6d 100644
--- a/public/statsd.te
+++ b/public/statsd.te
@@ -66,7 +66,7 @@ hal_client_domain(statsd, hal_thermal)
 # Allow 'adb shell cmd' to upload configs and download output.
 allow statsd adbd:fd use;
 allow statsd adbd:unix_stream_socket { getattr read write };
-allow statsd shell:fifo_file { getattr read };
+allow statsd shell:fifo_file { getattr read write };
 
 unix_socket_send(statsd, statsdw, statsd)
 
-- 
GitLab