aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRajshekar Eashwarappa <reashw@codeaurora.org>2019-05-06 14:46:14 +0530
committerFaiz Authar <faizauthar@gmail.com>2019-05-29 22:10:15 +0700
commit08e17e6e205272486f37cea5db5af749303982a6 (patch)
treeba5c7cce59046d65cfffc31fb9caadf13dbf7ce7
parentf0e204219d546cf235e4371e5944e940fad5e3be (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>
-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 238b74d2..b4b64df1 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 00000000..429585f1
--- /dev/null
+++ b/sepolicy/hal_bluetooth_qti.te
@@ -0,0 +1 @@
+allow hal_bluetooth_qti sysfs_bluetooth_writable:file rw_file_perms;