diff options
author | Marie Janssen <jamuraa@google.com> | 2015-10-09 14:22:22 -0700 |
---|---|---|
committer | Marie Janssen <jamuraa@google.com> | 2015-10-09 14:23:32 -0700 |
commit | db018db337ac8259ff41535ad05a680c6f3fa002 (patch) | |
tree | 1bd498d044d808a54d9b770bfe7f62d971292076 | |
parent | 0f5815814cadcf24e156f7a7cc16ab4d752867e3 (diff) | |
download | qcom-db018db337ac8259ff41535ad05a680c6f3fa002.tar.gz |
Associate smd files used by bluetooth
/dev/smd[23] are used to communicate with the bluetooth chip, per
qualcomm. They should be set as bluetooth device files and have
correct ownership.
Bug: 24674749
Change-Id: Id4daa287e2d26fc30c5b9add7427ae51e1ad7e07
-rw-r--r-- | soc/msm8916/init.msm8916.rc | 2 | ||||
-rw-r--r-- | soc/msm8916/sepolicy/file_contexts | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/soc/msm8916/init.msm8916.rc b/soc/msm8916/init.msm8916.rc index 6e1d8eb..479ba93 100644 --- a/soc/msm8916/init.msm8916.rc +++ b/soc/msm8916/init.msm8916.rc @@ -26,5 +26,5 @@ on fs write /sys/class/android_usb/android0/f_ffs/aliases adb wait /dev/block/platform/soc.0/7824900.sdhci/by-name/modem mount vfat /dev/block/platform/soc.0/7824900.sdhci/by-name/modem /firmware ro context=u:object_r:firmware_file:s0,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337 - + chown bluetooth /dev/smd2 /dev/smd3 diff --git a/soc/msm8916/sepolicy/file_contexts b/soc/msm8916/sepolicy/file_contexts index e534a5a..854a80c 100644 --- a/soc/msm8916/sepolicy/file_contexts +++ b/soc/msm8916/sepolicy/file_contexts @@ -1,2 +1,6 @@ # Serial console /dev/ttyHSL0 u:object_r:console_device:s0 + +# Bluetooth memory devices +/dev/smd2 u:object_r:bluetoothtbd_device:s0 +/dev/smd3 u:object_r:bluetoothtbd_device:s0 |