Merge "SELinux policy that separates "init_shell" from "shell"." into jb-mr2-dev
diff --git a/wpa_supplicant.te b/wpa_supplicant.te
index be1bf25..00912e5 100644
--- a/wpa_supplicant.te
+++ b/wpa_supplicant.te
@@ -18,3 +18,7 @@
# Create a socket for receiving info from wpa
type_transition wpa wifi_data_file:sock_file wpa_socket;
allow wpa wpa_socket:sock_file create_file_perms;
+
+# Allow init to create wpa_socket and transition to wpa
+type_transition init wpa_socket:unix_dgram_socket wpa_socket;
+allow wpa wpa_socket:unix_dgram_socket { read write };