summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-10 23:07:24 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-10 23:07:24 +0000
commit6cba4e81c629e5838cf5c7e24eedf0ff1bb03b49 (patch)
tree526af49bd86de7f5688d9d87f2baf0d6c88861c6
parent5ee2c044a76f062b5e0a1fd59d2225519dd2836c (diff)
parentb4fe0cfb7fe866110de2d399d2f7b3599e2edb6a (diff)
downloadpantah-sepolicy-android-14.0.0_r20.tar.gz
Change-Id: I853ea3f8d09df636c2b2c4407f44b6182343582c
-rw-r--r--cheetah/file.te3
-rw-r--r--cheetah/file_contexts2
-rw-r--r--cheetah/hal_bluetooth_btlinux.te3
-rw-r--r--panther/file.te3
-rw-r--r--panther/file_contexts2
-rw-r--r--panther/hal_bluetooth_btlinux.te3
6 files changed, 16 insertions, 0 deletions
diff --git a/cheetah/file.te b/cheetah/file.te
new file mode 100644
index 0000000..6e3395b
--- /dev/null
+++ b/cheetah/file.te
@@ -0,0 +1,3 @@
+# BT
+type vendor_bt_data_file, file_type, data_file_type;
+
diff --git a/cheetah/file_contexts b/cheetah/file_contexts
index cae0049..65e3bb6 100644
--- a/cheetah/file_contexts
+++ b/cheetah/file_contexts
@@ -2,3 +2,5 @@
/dev/ttySAC18 u:object_r:hci_attach_dev:s0
/dev/logbuffer_btlpm u:object_r:logbuffer_device:s0
/dev/logbuffer_tty18 u:object_r:logbuffer_device:s0
+
+/data/vendor/bluetooth(/.*)? u:object_r:vendor_bt_data_file:s0
diff --git a/cheetah/hal_bluetooth_btlinux.te b/cheetah/hal_bluetooth_btlinux.te
new file mode 100644
index 0000000..851dc89
--- /dev/null
+++ b/cheetah/hal_bluetooth_btlinux.te
@@ -0,0 +1,3 @@
+allow hal_bluetooth_btlinux vendor_bt_data_file:dir rw_dir_perms;
+allow hal_bluetooth_btlinux vendor_bt_data_file:file create_file_perms;
+
diff --git a/panther/file.te b/panther/file.te
new file mode 100644
index 0000000..6e3395b
--- /dev/null
+++ b/panther/file.te
@@ -0,0 +1,3 @@
+# BT
+type vendor_bt_data_file, file_type, data_file_type;
+
diff --git a/panther/file_contexts b/panther/file_contexts
index cae0049..a671f68 100644
--- a/panther/file_contexts
+++ b/panther/file_contexts
@@ -2,3 +2,5 @@
/dev/ttySAC18 u:object_r:hci_attach_dev:s0
/dev/logbuffer_btlpm u:object_r:logbuffer_device:s0
/dev/logbuffer_tty18 u:object_r:logbuffer_device:s0
+
+/data/vendor/bluetooth(/.*)? u:object_r:vendor_bt_data_file:s0 \ No newline at end of file
diff --git a/panther/hal_bluetooth_btlinux.te b/panther/hal_bluetooth_btlinux.te
new file mode 100644
index 0000000..851dc89
--- /dev/null
+++ b/panther/hal_bluetooth_btlinux.te
@@ -0,0 +1,3 @@
+allow hal_bluetooth_btlinux vendor_bt_data_file:dir rw_dir_perms;
+allow hal_bluetooth_btlinux vendor_bt_data_file:file create_file_perms;
+