Adding policy for IMS and WPA for VoWIFI

Change-Id: I6cc0d9fff942e877695927cb0f4cf0dd4ebd4370
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 38793b8..8ba959b 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -133,6 +133,7 @@
         mpdecision.te \
         netd.te \
         netmgrd.te \
+        wpa.te \
         platform_app.te \
         property.te \
         property_contexts \
diff --git a/sepolicy/ims.te b/sepolicy/ims.te
index 06464ed..a9f4a35 100644
--- a/sepolicy/ims.te
+++ b/sepolicy/ims.te
@@ -43,3 +43,10 @@
 
 # Allow ims to tell init to start the ims data service via property=sys.ims.QMI_DAEMON_STATUS
 allow ims qcom_ims_prop:property_service set;
+
+allow ims wpa_socket:sock_file create_file_perms;
+allow ims wpa_socket:dir rw_dir_perms;
+
+allow ims wifi_data_file:dir r_dir_perms;
+
+unix_socket_send(ims, wpa, wpa)
diff --git a/sepolicy/wpa.te b/sepolicy/wpa.te
new file mode 100644
index 0000000..8e17353
--- /dev/null
+++ b/sepolicy/wpa.te
@@ -0,0 +1,2 @@
+# permission for wpa socket which IMS use to communicate
+allow wpa ims:unix_dgram_socket sendto;