summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin Li <delphij@google.com>2023-10-17 10:06:50 -0700
committerXin Li <delphij@google.com>2023-10-17 10:06:50 -0700
commit9aa89940d068223072c8d646c79d293bff09d035 (patch)
treedfef03ddd6049cc760b10c8aeb7ca6f935e16663
parent2daaa49319b078aff3fba07a0c92e5ff5fffc328 (diff)
parentc4d5eb7f17ea622b829607cc1de0f1ffb4a8a185 (diff)
downloadpantah-sepolicy-tmp_amf_315507370.tar.gz
Merge 10952656tmp_amf_315507370
Merged-In: Ie0013212e15e6688f520e82aaca224ea97a6629a Change-Id: Ief1dc191c7669c9f14f0974fca46ebb4f8bfa2cc
-rw-r--r--cheetah/cccdk_timesync_app.te1
-rw-r--r--cheetah/file.te3
-rw-r--r--cheetah/file_contexts2
-rw-r--r--cheetah/grilservice_app.te1
-rw-r--r--cheetah/hal_bluetooth_btlinux.te3
-rw-r--r--panther/file.te3
-rw-r--r--panther/file_contexts2
-rw-r--r--panther/grilservice_app.te1
-rw-r--r--panther/hal_bluetooth_btlinux.te3
9 files changed, 19 insertions, 0 deletions
diff --git a/cheetah/cccdk_timesync_app.te b/cheetah/cccdk_timesync_app.te
new file mode 100644
index 0000000..1a4264d
--- /dev/null
+++ b/cheetah/cccdk_timesync_app.te
@@ -0,0 +1 @@
+allow vendor_cccdktimesync_app hal_bluetooth_coexistence_service:service_manager find;
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/grilservice_app.te b/cheetah/grilservice_app.te
new file mode 100644
index 0000000..ad0a779
--- /dev/null
+++ b/cheetah/grilservice_app.te
@@ -0,0 +1 @@
+allow grilservice_app hal_bluetooth_coexistence_service:service_manager find;
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/grilservice_app.te b/panther/grilservice_app.te
new file mode 100644
index 0000000..ad0a779
--- /dev/null
+++ b/panther/grilservice_app.te
@@ -0,0 +1 @@
+allow grilservice_app hal_bluetooth_coexistence_service:service_manager find;
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;
+