diff options
author | Avijit Kanti Das <avijitnsec@codeaurora.org> | 2014-12-03 10:39:35 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-12-03 23:13:49 -0800 |
commit | e1dd1869b937dcd835d30542f52a0bb4110cebe1 (patch) | |
tree | 1fe9cc7446bfdbf779c792c68ca807e1c278faf2 /common | |
parent | 6637604235ead431046b2fae1724fb9027b43f52 (diff) | |
download | android_device_qcom_sepolicy-e1dd1869b937dcd835d30542f52a0bb4110cebe1.tar.gz android_device_qcom_sepolicy-e1dd1869b937dcd835d30542f52a0bb4110cebe1.tar.bz2 android_device_qcom_sepolicy-e1dd1869b937dcd835d30542f52a0bb4110cebe1.zip |
Seandroid: Adding policies for IMS
IMS needs read, write access to voice_svc dev node
Change-Id: I4059457b4f920198bb4c42cc12fc720cbbc3d60d
Diffstat (limited to 'common')
-rwxr-xr-x | common/device.te | 3 | ||||
-rwxr-xr-x | common/file_contexts | 1 | ||||
-rw-r--r-- | common/ims.te | 3 |
3 files changed, 7 insertions, 0 deletions
diff --git a/common/device.te b/common/device.te index 927cf276..2fdd2927 100755 --- a/common/device.te +++ b/common/device.te @@ -82,3 +82,6 @@ type gadget_serial_device, dev_type; #Added for hbtp type bu21150_device, dev_type; type hbtp_device, dev_type; + +#added for voice device +type voice_device, dev_type; diff --git a/common/file_contexts b/common/file_contexts index 18ba48d1..0a9f269c 100755 --- a/common/file_contexts +++ b/common/file_contexts @@ -54,6 +54,7 @@ /dev/wcnss_wlan u:object_r:wcnss_device:s0 /dev/hbtp_input u:object_r:hbtp_device:s0 /dev/jdi-bu21150 u:object_r:bu21150_device:s0 +/dev/voice_svc u:object_r:voice_device:s0 ################################### # Dev socket nodes diff --git a/common/ims.te b/common/ims.te index 2d81d70f..5a104780 100644 --- a/common/ims.te +++ b/common/ims.te @@ -52,3 +52,6 @@ allow ims wifi_data_file:dir r_dir_perms; # permissions for communication with CNE in LBO use case unix_socket_connect(ims, cnd, cnd) + +#Communication with voice_svc device for audio on APP +allow ims voice_device:chr_file rw_file_perms; |