summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Klyubin <klyubin@google.com>2017-02-16 20:21:32 -0800
committerAlex Klyubin <klyubin@google.com>2017-02-16 20:21:32 -0800
commitbe39085f0975fc5bb4f48350fa73a4681edc604e (patch)
tree24b5c5769de442348d9b1798e714c7ae1aa969bc
parent9f66604b90d8bfe968ec41c8d8c9fdd1be5829a6 (diff)
downloadbullhead-be39085f0975fc5bb4f48350fa73a4681edc604e.tar.gz
Move Bluetooth HAL policy to hal_bluetooth
This moves bluetooth domain policy to do with Bluetooth HAL running inside that domain into hal_bluetooth. bluetooth domain is now associated with hal_bluetooth when Bluetooth HAL is in passthrough mode. Test: Toggle Bluetooth off and on Test: Pair with another Android, and transfer a file to that Android over Bluetooth Test: Pair with a Bluetooth speaker, play music through that speaker over Bluetooth Bug: 34170079 Change-Id: Ibfff5d4d6e86f085cf3323282768ebc5de2c1baa
-rw-r--r--sepolicy/bluetooth.te11
-rw-r--r--sepolicy/hal_bluetooth.te11
2 files changed, 11 insertions, 11 deletions
diff --git a/sepolicy/bluetooth.te b/sepolicy/bluetooth.te
deleted file mode 100644
index edab8e0..0000000
--- a/sepolicy/bluetooth.te
+++ /dev/null
@@ -1,11 +0,0 @@
-allow bluetooth sysfs:file rw_file_perms;
-allow bluetooth sysfs_usb:file w_file_perms;
-
-allow bluetooth ttyHS0_device:chr_file rw_file_perms;
-allow bluetooth start_hci_filter:unix_stream_socket connectto;
-
-set_prop(bluetooth, wc_transport_prop)
-
-# read /persist/bdaddr.txt
-allow bluetooth persist_file:dir search;
-allow bluetooth persist_file:file r_file_perms;
diff --git a/sepolicy/hal_bluetooth.te b/sepolicy/hal_bluetooth.te
new file mode 100644
index 0000000..d44bbcb
--- /dev/null
+++ b/sepolicy/hal_bluetooth.te
@@ -0,0 +1,11 @@
+allow hal_bluetooth sysfs:file rw_file_perms;
+allow hal_bluetooth sysfs_usb:file w_file_perms;
+
+allow hal_bluetooth ttyHS0_device:chr_file rw_file_perms;
+allow hal_bluetooth start_hci_filter:unix_stream_socket connectto;
+
+set_prop(hal_bluetooth, wc_transport_prop)
+
+# read /persist/bdaddr.txt
+allow hal_bluetooth persist_file:dir search;
+allow hal_bluetooth persist_file:file r_file_perms;