summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2014-12-04 14:45:10 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2014-12-04 14:45:10 -0800
commit9040d50dc9b85cd0ec4b2b5f151ec6d471d69659 (patch)
treeb1744776111658effdcc4c5632c0be5a9211adc0
parent6c872f0e34fdf22639fb13c08184e16a23fe4408 (diff)
parente1dd1869b937dcd835d30542f52a0bb4110cebe1 (diff)
downloadandroid_device_qcom_sepolicy-9040d50dc9b85cd0ec4b2b5f151ec6d471d69659.tar.gz
android_device_qcom_sepolicy-9040d50dc9b85cd0ec4b2b5f151ec6d471d69659.tar.bz2
android_device_qcom_sepolicy-9040d50dc9b85cd0ec4b2b5f151ec6d471d69659.zip
Merge "Seandroid: Adding policies for IMS"
-rwxr-xr-xcommon/device.te3
-rwxr-xr-xcommon/file_contexts1
-rw-r--r--common/ims.te3
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 29bb0303..ac3b7303 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;