Split host and guest wifi_relay
BUG: 78296257
Test: Local build and boot w/wifi
Change-Id: I6f85b8b6583c44a9ce9e71f52489e4c071e54844
diff --git a/shared/config/init.vsoc.rc b/shared/config/init.vsoc.rc
index fe5734b..038e373 100644
--- a/shared/config/init.vsoc.rc
+++ b/shared/config/init.vsoc.rc
@@ -136,7 +136,7 @@
disabled
-service wifi_relay /vendor/bin/wifi_relay
+service wifi_setup /vendor/bin/wifi_setup
class late_start
user root
diff --git a/shared/device.mk b/shared/device.mk
index e44e2ab..492acb5 100644
--- a/shared/device.mk
+++ b/shared/device.mk
@@ -65,7 +65,7 @@
socket_forward_proxy \
usbforward \
VSoCService \
- wifi_relay \
+ wifi_setup \
wpa_supplicant.vsoc.conf \
vsoc_input_service \
vport_trigger \
diff --git a/shared/sepolicy/file_contexts b/shared/sepolicy/file_contexts
index c08de58..43e6e1d 100644
--- a/shared/sepolicy/file_contexts
+++ b/shared/sepolicy/file_contexts
@@ -25,7 +25,7 @@
/vendor/bin/socket_forward_proxy u:object_r:socket_forward_proxy_exec:s0
/vendor/bin/vsoc_input_service u:object_r:vsoc_input_service_exec:s0
/vendor/bin/vsoc_guest_region_e2e_test u:object_r:vsoc_guest_region_e2e_test_exec:s0
-/vendor/bin/wifi_relay u:object_r:wifi_relay_exec:s0
+/vendor/bin/wifi_setup u:object_r:wifi_setup_exec:s0
/vendor/bin/vport_trigger u:object_r:vport_trigger_exec:s0
/vendor/bin/rename_netiface u:object_r:rename_netiface_exec:s0
/vendor/bin/hw/android\.hardware\.bluetooth@1\.0-service\.sim u:object_r:hal_bluetooth_sim_exec:s0
diff --git a/shared/sepolicy/wifi_relay.te b/shared/sepolicy/wifi_relay.te
deleted file mode 100644
index 1d2c122..0000000
--- a/shared/sepolicy/wifi_relay.te
+++ /dev/null
@@ -1,5 +0,0 @@
-type wifi_relay, domain;
-type wifi_relay_exec, exec_type, vendor_file_type, file_type;
-
-init_daemon_domain(wifi_relay)
-allow wifi_relay self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;
diff --git a/shared/sepolicy/wifi_setup.te b/shared/sepolicy/wifi_setup.te
new file mode 100644
index 0000000..96e8e15
--- /dev/null
+++ b/shared/sepolicy/wifi_setup.te
@@ -0,0 +1,5 @@
+type wifi_setup, domain;
+type wifi_setup_exec, exec_type, vendor_file_type, file_type;
+
+init_daemon_domain(wifi_setup)
+allow wifi_setup self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;