diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2016-10-31 14:10:06 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-10-31 14:10:06 -0700 |
commit | 5c48d1868a4d1bb6c136e5c52d45c2da84e1e62e (patch) | |
tree | e546c4b084ded4d9168b824b22160ac9c717a8ab | |
parent | 7945fc4943ffc03ead70b5752f5c972be64a33dd (diff) | |
parent | 0c22d0ad2ab012ec6dd666eba22fb1f9505e3dfa (diff) | |
download | android_device_qcom_sepolicy-5c48d1868a4d1bb6c136e5c52d45c2da84e1e62e.tar.gz android_device_qcom_sepolicy-5c48d1868a4d1bb6c136e5c52d45c2da84e1e62e.tar.bz2 android_device_qcom_sepolicy-5c48d1868a4d1bb6c136e5c52d45c2da84e1e62e.zip |
Merge "Add permissions to access bt device node"
-rw-r--r-- | common/bluetooth.te | 1 | ||||
-rw-r--r-- | common/device.te | 3 | ||||
-rw-r--r-- | common/file_contexts | 1 | ||||
-rw-r--r-- | common/system_server.te | 2 |
4 files changed, 7 insertions, 0 deletions
diff --git a/common/bluetooth.te b/common/bluetooth.te index ffe1ed90..2656f060 100644 --- a/common/bluetooth.te +++ b/common/bluetooth.te @@ -37,6 +37,7 @@ allow bluetooth { serial_device #BT needes read and write on smd device node smd_device + bt_device }:chr_file rw_file_perms; #Access to persist_file diff --git a/common/device.te b/common/device.te index 362be377..22179749 100644 --- a/common/device.te +++ b/common/device.te @@ -138,3 +138,6 @@ type avtimer_device, dev_type; #define AT device type at_device, dev_type; + +#define Bluetooth device +type bt_device, dev_type; diff --git a/common/file_contexts b/common/file_contexts index fcbffe9e..b60d8432 100644 --- a/common/file_contexts +++ b/common/file_contexts @@ -24,6 +24,7 @@ /dev/qsee_ipc_irq_spss u:object_r:qsee_ipc_irq_spss_device:s0 /dev/seemplog u:object_r:seemplog_device:s0 /dev/radio0 u:object_r:fm_radio_device:s0 +/dev/btpower u:object_r:bt_device:s0 /dev/rtc0 u:object_r:rtc_device:s0 /dev/sdsprpc-smd u:object_r:dsp_device:s0 /dev/sensors u:object_r:sensors_device:s0 diff --git a/common/system_server.te b/common/system_server.te index 0081be89..57578203 100644 --- a/common/system_server.te +++ b/common/system_server.te @@ -85,6 +85,8 @@ allow system_server { graphics_device audio_device tee_device + #allow access to power control ANT chip + bt_device }:chr_file rw_file_perms; #For firmware |