logd: permit app access to clear logs
I/auditd(19949): type=1400 audit(0.0:71): avc: denied { write } for comm="logcat" name="logd" dev="tmpfs" ino=5924 scontext=u:r:untrusted_app:s0 tcontext=u:object_r:logd_socket:s0 tclass=sock_file
(cherry picked from 60f0be84c0cf3a895c6b95ee8387b71e1b0c6d83)
Bug: 17323719
Change-Id: Id8399195196ffad884eef98030d544c68ed0596f
diff --git a/app.te b/app.te
index ad9cffe..6c38f10 100644
--- a/app.te
+++ b/app.te
@@ -177,6 +177,7 @@
# logd access
read_logd(appdomain)
+control_logd(appdomain)
# application inherit logd write socket (urge is to deprecate this long term)
allow appdomain zygote:unix_dgram_socket write;