From 9795c12e8f348d25bca4f3bfa166baf6d51ed4eb Mon Sep 17 00:00:00 2001 From: Patty Date: Mon, 30 Aug 2021 18:02:43 +0800 Subject: [PATCH] Split bluetooth sepolicy file to avoid conflict - Move bluetooth related config to bluetooth folder Bug: 196308076 Test: make; boot with service btlinux started Change-Id: I8d40697f20a916fc154f0b60851abecd1deadc0d --- bluetooth/file_contexts | 2 ++ .../vendor/google => bluetooth}/hal_bluetooth_btlinux.te | 0 whitechapel/vendor/google/file_contexts | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 bluetooth/file_contexts rename {whitechapel/vendor/google => bluetooth}/hal_bluetooth_btlinux.te (100%) diff --git a/bluetooth/file_contexts b/bluetooth/file_contexts new file mode 100644 index 00000000..5bb9a33a --- /dev/null +++ b/bluetooth/file_contexts @@ -0,0 +1,2 @@ +# Bluetooth +/(vendor|system/vendor)/bin/hw/android\.hardware\.bluetooth@1\.1-service\.bcmbtlinux u:object_r:hal_bluetooth_btlinux_exec:s0 diff --git a/whitechapel/vendor/google/hal_bluetooth_btlinux.te b/bluetooth/hal_bluetooth_btlinux.te similarity index 100% rename from whitechapel/vendor/google/hal_bluetooth_btlinux.te rename to bluetooth/hal_bluetooth_btlinux.te diff --git a/whitechapel/vendor/google/file_contexts b/whitechapel/vendor/google/file_contexts index 11445e44..6aa2a0f6 100644 --- a/whitechapel/vendor/google/file_contexts +++ b/whitechapel/vendor/google/file_contexts @@ -294,7 +294,6 @@ /(vendor|system/vendor)/bin/hw/android\.hardware\.secure_element@1\.2-uicc-service u:object_r:hal_secure_element_default_exec:s0 # Bluetooth -/(vendor|system/vendor)/bin/hw/android\.hardware\.bluetooth@1\.1-service\.bcmbtlinux u:object_r:hal_bluetooth_btlinux_exec:s0 /dev/wbrc u:object_r:wb_coexistence_dev:s0 /dev/ttySAC16 u:object_r:hci_attach_dev:s0 /dev/logbuffer_btlpm u:object_r:logbuffer_device:s0