From c9f205b56ab2c39e0a1c25fd2496e6f991fccf79 Mon Sep 17 00:00:00 2001 From: Bookatz <bookatz@google.com> Date: Fri, 23 Feb 2018 12:54:13 -0800 Subject: [PATCH] Fix benign statsd selinux violations These two selinux policy violations keep showing up from statsd's CTS tests, although statsd and the CTS test seemed to function fine despite them. Nonetheless, they seem reasonable to add to the list. Bug: 73548694 Test: N/A. It didn't seem to be causing any issues in the first place. Change-Id: Id36c5229c0d7de83675166caeb07c87b719dc374 --- private/statsd.te | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/private/statsd.te b/private/statsd.te index 8874f732b..e7af6c511 100644 --- a/private/statsd.te +++ b/private/statsd.te @@ -74,8 +74,8 @@ hal_client_domain(statsd, hal_power) # Allow 'adb shell cmd' to upload configs and download output. allow statsd adbd:fd use; -allow statsd adbd:unix_stream_socket { read write }; -allow statsd shell:fifo_file read; +allow statsd adbd:unix_stream_socket { getattr read write }; +allow statsd shell:fifo_file { getattr read }; ### ### neverallow rules -- GitLab