Summary: | security/wpa_supplicant: add MATCH option (CONFIG_MATCH_IFACE) | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Val Packett <val> | ||||
Component: | Individual Port(s) | Assignee: | Cy Schubert <cy> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | Keywords: | buildisok | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(cy) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Excellent! Thanks. This looks like something that could be enabled in base as well. Let me look at it. Build info is available at https://gitlab.com/swills/freebsd-ports/pipelines/160275500 Thanks Steve. A commit references this bug: Author: cy Date: Fri Jun 26 01:33:19 UTC 2020 New revision: 540412 URL: https://svnweb.freebsd.org/changeset/ports/540412 Log: add MATCH option for CONFIG_MATCH_IFACE. PR: 247177 Submitted by: greg@unrelenting.technology Reported by: greg@unrelenting.technology Tested by: swills Changes: head/security/wpa_supplicant/Makefile A commit references this bug: Author: cy Date: Fri Jun 26 14:18:08 UTC 2020 New revision: 362651 URL: https://svnweb.freebsd.org/changeset/base/362651 Log: Add MATCH option for CONFIG_MATCH_IFACE. If the interfaces on which wpa_supplicant is to run are not known or do not exist, wpa_supplicant can match an interface when it arrives. Each matched interface is separated with -M argument and the -i argument now allows for pattern matching. As an example, the following command would start wpa_supplicant for a specific wired interface called lan0, any interface starting with wlan and lastly any other interface. Each match has its own configuration file, and for the wired interface a specific driver has also been given. wpa_supplicant \ -M -c wpa_wired.conf -ilan0 -D wired \ -M -c wpa1.conf -iwlan* \ -M -c wpa2.conf PR: 247177 Reported by: greg@unrelenting.technology MFC after: 1 month Related to: ports r540412 Changes: head/usr.sbin/wpa/wpa_supplicant/Makefile A commit references this bug: Author: cy Date: Sun Jul 26 13:07:10 UTC 2020 New revision: 363561 URL: https://svnweb.freebsd.org/changeset/base/363561 Log: MFC r362651: Add MATCH option for CONFIG_MATCH_IFACE. If the interfaces on which wpa_supplicant is to run are not known or do not exist, wpa_supplicant can match an interface when it arrives. Each matched interface is separated with -M argument and the -i argument now allows for pattern matching. As an example, the following command would start wpa_supplicant for a specific wired interface called lan0, any interface starting with wlan and lastly any other interface. Each match has its own configuration file, and for the wired interface a specific driver has also been given. wpa_supplicant \ -M -c wpa_wired.conf -ilan0 -D wired \ -M -c wpa1.conf -iwlan* \ -M -c wpa2.conf PR: 247177 Reported by: greg@unrelenting.technology Related to: ports r540412 Changes: _U stable/11/ stable/11/usr.sbin/wpa/wpa_supplicant/Makefile _U stable/12/ stable/12/usr.sbin/wpa/wpa_supplicant/Makefile Completed. |
Created attachment 215453 [details] wpa_match.patch The CONFIG_MATCH_IFACE option enables the -M flag, which allows launching wpa_supplicant once for all network interfaces (it will autodetect created ones).