From af8fb9f73922de2f99589de7aa31841230154532 Mon Sep 17 00:00:00 2001
From: yro <yro@google.com>
Date: Mon, 23 Apr 2018 08:38:34 -0700
Subject: [PATCH] Allow radio to write to statsd

The corresponding change in aosp is made at aosp/669146

Violation:
04-23 10:51:03.926  2103  2103 W m.android.phone: type=1400 audit(0.0:8): avc: denied { write } for name="statsdw" dev="tmpfs" ino=22538 scontext=u:r:radio:s0 tcontext=u:object_r:statsdw_socket:s0 tclass=sock_file permissive=0

Bug: 78318738
Test: manual
Change-Id: I8aa70b07281df8a732f2f99d4d323961e425feea
---
 private/statsd.te | 1 +
 1 file changed, 1 insertion(+)

diff --git a/private/statsd.te b/private/statsd.te
index 7305464ba..769b4e017 100644
--- a/private/statsd.te
+++ b/private/statsd.te
@@ -85,6 +85,7 @@ allow statsd shell:fifo_file { getattr read };
 unix_socket_send(bluetooth, statsdw, statsd)
 unix_socket_send(bootstat, statsdw, statsd)
 unix_socket_send(platform_app, statsdw, statsd)
+unix_socket_send(radio, statsdw, statsd)
 unix_socket_send(statsd, statsdw, statsd)
 unix_socket_send(system_server, statsdw, statsd)
 
-- 
GitLab