3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-23 14:22:36 +01:00
iwd/wired
Alvin Šipraga e03b1e263d build: add After=network-pre.target to service files
systemd specifies a special passive target unit 'network-pre.target'
which may be pulled in by services that want to run before any network
interface is brought up or configured. Correspondingly, network
management services such as iwd and ead should specify
After=network-pre.target to ensure a proper ordering with respect to
this special target. For more information on network-pre.target, see
systemd.special(7).

Two examples to explain the rationale of this change:

1. On one of our embedded systems running iwd, a oneshot service is
   run on startup to configure - among other things - the MAC address of
   the wireless network interface based on some data in an EEPROM.
   Following the systemd documentation, the oneshot service specifies:

        Before=network-pre.target
        Wants=network-pre.target

   ... to ensure that it is run before any network management software
   starts. In practice, before this change, iwd was starting up and
   connecting to an AP before the service had finished. iwd would then
   get kicked off by the AP when the MAC address got changed. By
   specifying After=network-pre.target, systemd will take care to avoid
   this situation.

2. An administrator may wish to use network-pre.target to ensure
   firewall rules are applied before any network management software is
   started. This use-case is described in the systemd documentation[1].
   Since iwd can be used for IP configuration, it should also respect
   the After=network-pre.target convention.

Note that network-pre.target is a passive unit that is only pulled in if
another unit specifies e.g. Wants=network-pre.target. If no such unit
exists, this change will have no effect on the order in which systemd
starts iwd or ead.

[1] https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/
2021-01-22 14:17:16 -06:00
..
dbus.c wired: Update to the new ell api 2019-10-28 15:48:04 -05:00
dbus.h wired: Introduce EAD_BASE_PATH 2019-10-28 15:48:12 -05:00
ead-dbus.conf build: Add D-Bus policy for Ethernet authentication daemon 2018-09-14 15:07:30 +02:00
ead.rst build: Add skeleton manual pages for all installed binaries 2019-09-22 21:57:47 +02:00
ead.service.in build: add After=network-pre.target to service files 2021-01-22 14:17:16 -06:00
ethdev.c wired: use 802.1X-2001 instead of 802.1X-2004 2020-04-24 22:04:22 -05:00
ethdev.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
main.c wired: Utilize module system for daemon init 2019-11-07 23:59:54 +01:00
net.connman.ead.service build: Add systemd service configuration for Ethernet daemon 2018-09-14 14:09:53 +02:00
network.c wired: Update to the new ell API 2020-01-27 14:30:42 -06:00
network.h wired: Utilize module system for daemon init 2019-11-07 23:59:54 +01:00