From b0ed9363732f4924ba8f1069fd9c646ae6f0aa6e Mon Sep 17 00:00:00 2001
From: Steven Moreland <smoreland@google.com>
Date: Thu, 27 Apr 2017 14:13:01 -0700
Subject: [PATCH] Remove audio from socket_between.._violators

Test: Play Music over BT headset
Bug: 37640821
Change-Id: I1fe6c9a289315dc0118888e19250cd64aee9a0d5
---
 public/hal_audio.te         | 4 ----
 vendor/hal_audio_default.te | 2 --
 2 files changed, 6 deletions(-)

diff --git a/public/hal_audio.te b/public/hal_audio.te
index 9539ff40f..5b1a4dff5 100644
--- a/public/hal_audio.te
+++ b/public/hal_audio.te
@@ -21,10 +21,6 @@ allow hal_audio audio_device:chr_file rw_file_perms;
 allow hal_audio shell:fd use;
 allow hal_audio shell:fifo_file write;
 
-# Needed on some devices for playing audio on paired BT device,
-# but seems appropriate for all devices.
-unix_socket_connect(hal_audio, bluetooth, bluetooth)
-
 ###
 ### neverallow rules
 ###
diff --git a/vendor/hal_audio_default.te b/vendor/hal_audio_default.te
index 618166b78..0dc217030 100644
--- a/vendor/hal_audio_default.te
+++ b/vendor/hal_audio_default.te
@@ -6,5 +6,3 @@ init_daemon_domain(hal_audio_default)
 
 hal_client_domain(hal_audio_default, hal_allocator)
 
-# TODO(b/37640821): Remove once Audio HAL is no longer granted access to bluetooth daemon sockets
-typeattribute hal_audio_default socket_between_core_and_vendor_violators;
-- 
GitLab