[PATCH] iwd.service: add dependency on systemd-udevd

Ihor Kalnytskyi ihor at kalnytskyi.com
Sat Mar 23 01:12:49 PDT 2019


In modern GNU/Linux environments, systemd-udevd is used to assign stable
network interface names [1]. However, if iwd is started before
systemd-udevd, a network device will be acquired by the former causing
the latter to error with "Device or resource is busy". All this has some
serious security implications because the network interface will vary on
every boot.

[1] https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/

Signed-off-by: Ihor Kalnytskyi <ihor at kalnytskyi.com>
---
 src/iwd.service.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/iwd.service.in b/src/iwd.service.in
index a765d38..cf3900f 100644
--- a/src/iwd.service.in
+++ b/src/iwd.service.in
@@ -1,5 +1,6 @@
 [Unit]
 Description=Wireless service
+After=systemd-udevd.service
 Before=network.target
 Wants=network.target
 
-- 
2.21.0



More information about the iwd mailing list