From 89f215e6a0985e746f1993ed047c1971201db529 Mon Sep 17 00:00:00 2001
From: Jeff Vander Stoep <jeffv@google.com>
Date: Wed, 19 Jul 2017 07:38:29 -0700
Subject: [PATCH] Do not expand hal_audio attribute

Fixes:
neverallow hal_audio domain:{ tcp_socket udp_socket rawip_socket } *;
Warning!  Type or attribute hal_audio used in neverallow undefined in
policy being checked.

hal_audio_client is not used in neverallows and was mistakenly marked
as expandattribute false instead of hal_audio. Fix this.

Bug: 63809360
Test: build policy
Test: cts-tradefed run cts -m CtsSecurityHostTestCases -t \
    android.cts.security.SELinuxNeverallowRulesTest

    No more:
    Warning!  Type or attribute hal_audio used in neverallow
    undefined in policy being checked.

Change-Id: Iedf1b80f669f95537ed201cbdbb0626e7e32be81
---
 public/attributes | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/public/attributes b/public/attributes
index c9bb8015b..45ea133a6 100644
--- a/public/attributes
+++ b/public/attributes
@@ -185,9 +185,9 @@ expandattribute hal_allocator_client true;
 attribute hal_allocator_server;
 expandattribute hal_allocator_server false;
 attribute hal_audio;
-expandattribute hal_audio true;
+expandattribute hal_audio false;
 attribute hal_audio_client;
-expandattribute hal_audio_client false;
+expandattribute hal_audio_client true;
 attribute hal_audio_server;
 expandattribute hal_audio_server false;
 attribute hal_bluetooth;
-- 
GitLab