aboutsummaryrefslogtreecommitdiff
path: root/sepolicy
diff options
context:
space:
mode:
authorRajshekar Eashwarappa <reashw@codeaurora.org>2019-05-06 14:46:14 +0530
committerDavide Garberi <dade.garberi@gmail.com>2019-05-11 14:29:02 +0200
commit9641c4f1921692fe2546ac83faa818f810d8e59e (patch)
tree77bd127a75f8fd182d0504e8d5c6a186005f1a17 /sepolicy
parentc3d328b6be521feff20f9d10f755716d4d639cc7 (diff)
msm8996-common: sepolicy: bluetooth: Adding permission for rfkill failure
- Create label for RFKILL node and add sepolicy for its access. Change-Id: Id16dce0818aa1f6233b75f35344b4eca9259c7b1 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
Diffstat (limited to 'sepolicy')
-rw-r--r--sepolicy/file_contexts4
-rw-r--r--sepolicy/hal_bluetooth_qti.te1
2 files changed, 5 insertions, 0 deletions
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index 37c5fe6..d0d9c61 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -2,6 +2,10 @@
/(vendor|system/vendor)/bin/init.wlan.sh u:object_r:qti_init_shell_exec:s0
/(vendor|system/vendor)/bin/wcg_mac_tool u:object_r:wcg_mac_exec:s0
+# Bluetooth
+/sys/devices/vendor/vendor:bt_qca6174/extldo u:object_r:sysfs_bluetooth_writable:s0
+/sys/devices/vendor/vendor:bt_qca6174/rfkill/rfkill0/state u:object_r:sysfs_bluetooth_writable:s0
+
# Data files
/data/fpc(/.*)? u:object_r:fpc_data_file:s0
/data/decrypt\.txt u:object_r:thermal_data_file:s0
diff --git a/sepolicy/hal_bluetooth_qti.te b/sepolicy/hal_bluetooth_qti.te
new file mode 100644
index 0000000..429585f
--- /dev/null
+++ b/sepolicy/hal_bluetooth_qti.te
@@ -0,0 +1 @@
+allow hal_bluetooth_qti sysfs_bluetooth_writable:file rw_file_perms;