aboutsummaryrefslogtreecommitdiff
path: root/sepolicy/bluetooth.te
diff options
context:
space:
mode:
Diffstat (limited to 'sepolicy/bluetooth.te')
-rw-r--r--sepolicy/bluetooth.te32
1 files changed, 32 insertions, 0 deletions
diff --git a/sepolicy/bluetooth.te b/sepolicy/bluetooth.te
new file mode 100644
index 0000000..2ed77ad
--- /dev/null
+++ b/sepolicy/bluetooth.te
@@ -0,0 +1,32 @@
+
+# ==============================================
+# MTK Policy Rule
+# ============
+
+
+# Data : WK14.36
+# Operation : Migration
+# Purpose : IPC communication between bluetooth and mtkbt (BT host), and bluetooth and mediaserver
+allow bluetooth bt_int_adp_socket:sock_file write;
+allow bluetooth mediaserver:unix_dgram_socket sendto;
+allow bluetooth mtkbt:unix_dgram_socket sendto;
+allow bluetooth mtkbt:unix_stream_socket connectto;
+allow bluetooth mtkbt:fd use;
+allow bluetooth init:unix_dgram_socket sendto;
+
+# Data : WK14.36
+# Operation : Migration
+# Purpose : BT host stack cached data access
+allow bluetooth bt_data_file:dir { write add_name remove_name search};
+allow bluetooth bt_data_file:file { open read write create setattr getattr append unlink rename};
+
+# Data : WK14.44
+# Operation : Migration
+# IPC communication between bluetooth and mtkbt
+binder_call(bluetooth, mtkbt)
+#============= mediaserver ==============
+allow mediaserver bt_data_file:file read;
+
+#============= bluetooth ==============
+allow bluetooth platform_app_tmpfs:file write;
+