3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00
iwd/src
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
..
80-iwd.link build: Move 50-iwd.link up to 80-iwd.link for less confusion 2019-10-25 01:08:56 +02:00
adhoc.c adhoc: delay setting Started 2020-09-14 16:44:53 -05:00
agent.c agent: Don't remove object at IWD_AGENT_MANAGER_PATH 2020-07-16 10:44:40 -05:00
agent.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
anqp.c anqp: refactor to use frame-xchg 2020-07-09 09:58:21 -05:00
anqp.h anqp: refactor to use frame-xchg 2020-07-09 09:58:21 -05:00
anqputil.c treewide: fix typos 2020-01-21 16:03:28 -06:00
anqputil.h anqp: move ANQP parsers into anqputil 2019-07-15 14:53:44 -05:00
ap.c ap: Fix handshake state gtk not being set 2020-11-16 13:35:51 -06:00
ap.h ap: add StartProfile DBus method 2020-11-02 13:39:25 -06:00
auth-proto.h auth-proto: introduce auth-proto concept 2019-05-03 13:53:50 -05:00
backtrace.c treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
backtrace.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
blacklist.c module: Move declarations into separate header file 2019-11-07 23:40:13 +01:00
blacklist.h blacklist: Convert to use IWD_MODULE 2019-05-22 09:58:04 -05:00
common.c common: Remove duplicate AKM 2020-08-13 13:43:31 -05:00
common.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
crypto.c crypto: Update l_pkcs5_pbkdf2 call after rename 2021-01-07 14:05:40 -06:00
crypto.h crypto: Add support for PRF+ SHA1 2019-12-09 01:47:11 -06:00
dbus.c dbus: add helper for appending a dictionary 2021-01-12 13:19:38 -06:00
dbus.h dbus: add AccessPointDiagnostic interface 2021-01-20 14:01:10 -06:00
device.c treewide: Add missing netdev module dependencies 2020-08-20 11:49:01 -05:00
eap-aka.c eap: Simplify sending EAP method responses 2020-08-13 10:36:43 -05:00
eap-gtc.c eap: Simplify sending EAP method responses 2020-08-13 10:36:43 -05:00
eap-md5.c eap: Simplify sending EAP method responses 2020-08-13 10:36:43 -05:00
eap-mschapv2.c treewide: Use l_settings_{set,get}_bytes 2020-09-16 16:46:02 -05:00
eap-mschapv2.h cleanup: Remove extra empty lines 2020-03-17 15:35:22 -05:00
eap-peap.c peap: Fail auth. if invalid compound MAC is received 2020-02-06 15:18:04 -06:00
eap-private.h eap: Add authenticator method logic and API 2020-08-17 09:28:49 -05:00
eap-pwd.c eap: Simplify sending EAP method responses 2020-08-13 10:36:43 -05:00
eap-sim.c eap: Simplify sending EAP method responses 2020-08-13 10:36:43 -05:00
eap-tls-common.c eap-tls: Dump server certificate when IWD_TLS_DEBUG set 2021-01-04 12:17:00 -06:00
eap-tls-common.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
eap-tls.c treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
eap-ttls.c treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
eap-wsc.c treewide: Use l_settings_{set,get}_bytes 2020-09-16 16:46:02 -05:00
eap-wsc.h eap-wsc: Registrar mode message processing 2020-08-17 09:40:25 -05:00
eap.c eap: Re-send Identity Request on EAPoL-Start 2020-08-27 13:53:12 -05:00
eap.h eap: Add authenticator method logic and API 2020-08-17 09:28:49 -05:00
eapol.c eapol: IP Allocation KDE support authenticator side 2020-09-14 11:45:15 -05:00
eapol.h eapol: Drop unused eapol_sm_set_event_func 2019-10-30 14:34:20 -05:00
eapolutil.c treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
eapolutil.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
erp.c iwd: remove unnecessary semicolons 2020-04-08 21:02:15 -05:00
erp.h erp: Convert to using IWD_MODULE 2019-05-19 13:07:13 -05:00
fils.c fils: include RSNE in authenticate 2020-05-02 20:56:13 -05:00
fils.h fils: netdev: update to use auth_proto concepts 2019-05-03 14:37:11 -05:00
frame-xchg.c frame-xchg: fix invalid read 2020-11-02 11:39:03 -06:00
frame-xchg.h frame-xchg: Re-add frame_xchg_stop 2020-07-31 10:38:59 -05:00
ft.c treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
ft.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
genbuiltin make: plugin system for build 2017-11-28 13:20:33 -06:00
handshake.c handshake: Change signature of (i)gtk setters 2020-04-02 00:41:02 -05:00
handshake.h eapol: IP Allocation KDE support 2020-09-14 11:45:12 -05:00
hotspot.c treewide: Use l_settings_{set,get}_bytes 2020-09-16 16:46:02 -05:00
ie.c wiphy: Fix not attempting WPA3 connections for APs in transition mode 2020-08-13 14:27:14 -05:00
ie.h wiphy: Fix not attempting WPA3 connections for APs in transition mode 2020-08-13 14:27:14 -05:00
iwd-dbus.conf tools: Add configure option and D-Bus policy file for hwsim utility 2018-09-14 15:24:15 +02:00
iwd.ap.rst doc: document DHCP server options in AP profiles 2020-11-04 13:38:35 -06:00
iwd.config.rst doc: describe RoamRetryInterval setting 2021-01-22 13:48:02 -06:00
iwd.debug.rst man iwd.debug: Document IWD_GENL_DEBUG 2020-07-13 14:14:41 -05:00
iwd.h main: Add iwd_get_rtnl 2020-04-08 12:27:57 -05:00
iwd.network.rst doc: Update iwd.network.5 with changes from wiki 2020-11-19 14:21:42 -06:00
iwd.rst doc: Add manual page for debugging information 2019-11-05 22:14:09 +01:00
iwd.service.in build: add After=network-pre.target to service files 2021-01-22 14:17:16 -06:00
knownnetworks.c knownneetworks: React to mtime updates 2020-01-27 14:28:08 -06:00
knownnetworks.h knownneetworks: React to mtime updates 2020-01-27 14:28:08 -06:00
main.c plugins: remove dependency on ELL plugins 2020-09-16 14:30:14 -05:00
manager.c manager: move debug print in dump callback 2020-05-01 19:54:37 -05:00
missing.h build: Support missing rawmemchr 2020-02-03 11:54:28 -06:00
module.c module: Declare functions as foo(void) instead of just foo() 2019-11-24 19:44:06 +01:00
module.h module: add void to empty argument functions 2020-04-08 21:03:13 -05:00
mpdu.c treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
mpdu.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
mschaputil.c treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
mschaputil.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
net.connman.iwd.service net.connman.iwd.service: Change SystemdService name to iwd.service 2018-08-09 10:45:16 -05:00
netconfig.c netconfig: add ACD client for static configuration 2020-12-08 16:29:09 -06:00
netconfig.h netconfig: Implement netconfig_get_dhcp_server_ipv4 2020-07-13 14:52:02 -05:00
netdev.c netdev: add netdev_get_all_stations 2021-01-20 14:01:15 -06:00
netdev.h netdev: add netdev_get_all_stations 2021-01-20 14:01:15 -06:00
network.c network: clear info of removed known network before disconnect 2020-12-01 09:54:52 -06:00
network.h station: Give network a connection failed hint 2020-06-12 15:21:39 -05:00
nl80211cmd.c nl80211cmd: Add additional commands 2019-08-15 15:06:59 -05:00
nl80211cmd.h nl80211cmd: Introduce new utility 2019-07-15 14:06:26 -05:00
nl80211util.c nl80211util: Parse NL80211_ATTR_REG_ALPHA2 attrs 2020-04-24 11:38:44 -05:00
nl80211util.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
ofono.c ofono: convert to module 2020-09-16 14:31:07 -05:00
owe.c treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
owe.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
p2p.c ap: add error out param to ap_start 2020-10-26 14:30:34 -05:00
p2p.h Add minimal p2p.c and p2p.h 2020-04-10 06:31:19 -05:00
p2putil.c p2putil: Add p2p_get_random_string 2020-09-14 11:39:25 -05:00
p2putil.h p2putil: Add p2p_get_random_string 2020-09-14 11:39:25 -05:00
pkcs8.conf build: Provide modules-load.d for loading pkcs8_key_parser module 2019-01-23 18:22:11 +01:00
resolve.c resolve: Handle empty dns/domain lists 2020-12-02 10:55:05 -06:00
resolve.h netconfig: Install search domains obtained from DHCPv6 2020-11-18 12:00:17 -06:00
rfkill.c module: Move declarations into separate header file 2019-11-07 23:40:13 +01:00
rfkill.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
rrm.c rrm: Switch to new frame watch API 2020-01-16 11:37:57 -06:00
sae.c sae: Fix a side channel leak on the password 2020-08-03 16:12:50 -05:00
sae.h cleanup: Remove extra empty lines 2020-03-17 15:35:22 -05:00
scan.c scan: Fix crash when a canceled scan gets aborted 2020-10-30 14:06:31 -05:00
scan.h scan: Add optional source_mac scan parameter 2020-09-09 13:02:02 -05:00
simauth.c simauth: check driver for NULL before canceling request 2020-11-16 17:04:30 -06:00
simauth.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
simutil.c eap: Simplify sending EAP method responses 2020-08-13 10:36:43 -05:00
simutil.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
station.c station: add RoamRetryInterval setting 2021-01-22 13:46:25 -06:00
station.h station: Don't expire BSSes between freq subset scans 2020-12-17 20:22:47 -06:00
storage.c storage: Refactor dirs creation logic to cleanup on failure 2020-04-08 16:18:04 -05:00
storage.h storage: Add ability to preserve times 2020-01-22 11:15:19 -06:00
util.c util: add util_ip_prefix_tohl 2020-10-26 16:16:12 -05:00
util.h util: add util_ip_prefix_tohl 2020-10-26 16:16:12 -05:00
watchlist.c watchlist: Allow watch CBs to call watchlist_destroy 2020-03-18 13:49:22 -05:00
watchlist.h watchlist: Save the watchlist pointer in WATCHLIST_NOTIFY_* 2020-05-01 11:38:57 -05:00
wiphy.c wiphy: Fix not attempting WPA3 connections for APs in transition mode 2020-08-13 14:27:14 -05:00
wiphy.h wiphy: introduce new radio management APIs 2020-07-09 09:57:13 -05:00
wsc.c station: Don't expire BSSes between freq subset scans 2020-12-17 20:22:47 -06:00
wsc.h wsc: Rework wsc_enrollee_destroy 2020-01-17 12:50:23 -06:00
wscutil.c wscutil: Fix subcategory string lookup 2020-09-29 13:11:07 -05:00
wscutil.h wscutil: Add wsc_build_beacon 2020-08-28 10:29:06 -05:00