summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2017-10-18 15:24:41 +0200
committerMichael Bestas <mkbestas@lineageos.org>2018-05-20 21:57:18 +0300
commitd61e5fbc4e918d0b1d1d9c6fd1c0b1180b94c344 (patch)
tree2bdf958c32b66156a874cd91ed9de6795165580a
parenta39771f7674344fb8b85e382e3b6f24dfb641510 (diff)
downloadandroid_device_qcom_sepolicy-d61e5fbc4e918d0b1d1d9c6fd1c0b1180b94c344.tar.gz
android_device_qcom_sepolicy-d61e5fbc4e918d0b1d1d9c6fd1c0b1180b94c344.tar.bz2
android_device_qcom_sepolicy-d61e5fbc4e918d0b1d1d9c6fd1c0b1180b94c344.zip
legacy: Label BT_QCA6174 sysfs files
Qcom sepolicy only covers bt_qca6174, while our devices uses bt_qca6174.91. Label using a regex to make sure every case is covered. This fixes the following denial. avc: denied { write } for comm="hci_thread" name="state" dev="sysfs" ino=17919 scontext=u:r:bluetooth:s0 tcontext=u:object_r:sysfs:s0 tclass=file And should also fix bluetooth. Change-Id: Ice453dee8750e6c9ca6b1fe6cb20709c39958c7e
-rw-r--r--legacy-common/file_contexts2
1 files changed, 2 insertions, 0 deletions
diff --git a/legacy-common/file_contexts b/legacy-common/file_contexts
index f5ade7d6..dc0fe804 100644
--- a/legacy-common/file_contexts
+++ b/legacy-common/file_contexts
@@ -67,3 +67,5 @@
# Bluetooth
/(vendor|system/vendor)/bin/hci_qcomm_init u:object_r:bluetooth_loader_exec:s0
+/sys/devices/bt_qca6174\.[0-9]+/extldo u:object_r:sysfs_bluetooth_writable:s0
+/sys/devices/bt_qca6174\.[0-9]+/rfkill/rfkill0/state u:object_r:sysfs_bluetooth_writable:s0