From 33db81f8055fa471d3b0b6cdf78c2a057c11a0fc Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 19 Aug 2022 18:55:24 +0200 Subject: ethernet: T4538: fix wrong systemd unit used for EAPoL When MACsec was bound to an ethernet interface and the underlaying source-interface got changed (even description only) this terminated the MACsec session running on top of it. The root cause is when EAPoL was implemented in commit d59354e52a8a7f we re-used the same systemd unit which is responsible for MACsec. That indeed lead to the fact that wpa_supplicant was always stopped when anything happened on the underlaying source-interface that was not related to EAPoL. (cherry picked from commit f92a23ef9ab8be59681e5b7ba627e399d89bce53) --- .../system/wpa_supplicant-wired@.service.d/override.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/etc/systemd/system/wpa_supplicant-wired@.service.d/override.conf (limited to 'src/etc/systemd') diff --git a/src/etc/systemd/system/wpa_supplicant-wired@.service.d/override.conf b/src/etc/systemd/system/wpa_supplicant-wired@.service.d/override.conf new file mode 100644 index 000000000..030b89a2b --- /dev/null +++ b/src/etc/systemd/system/wpa_supplicant-wired@.service.d/override.conf @@ -0,0 +1,11 @@ +[Unit] +After= +After=vyos-router.service + +[Service] +WorkingDirectory= +WorkingDirectory=/run/wpa_supplicant +PIDFile=/run/wpa_supplicant/%I.pid +ExecStart= +ExecStart=/sbin/wpa_supplicant -c/run/wpa_supplicant/%I.conf -Dwired -P/run/wpa_supplicant/%I.pid -i%I +ExecReload=/bin/kill -HUP $MAINPID -- cgit v1.2.3