Bug 247177

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:
Description Flags
wpa_match.patch none

Description Val Packett 2020-06-11 15:38:38 UTC
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).
Comment 1 Cy Schubert freebsd_committer freebsd_triage 2020-06-11 16:00:33 UTC
Excellent! Thanks. This looks like something that could be enabled in base as well. Let me look at it.
Comment 2 Steve Wills freebsd_committer freebsd_triage 2020-06-26 00:13:21 UTC
Build info is available at https://gitlab.com/swills/freebsd-ports/pipelines/160275500
Comment 3 Cy Schubert freebsd_committer freebsd_triage 2020-06-26 00:16:45 UTC
Thanks Steve.
Comment 4 commit-hook freebsd_committer freebsd_triage 2020-06-26 01:33:28 UTC
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
Comment 5 commit-hook freebsd_committer freebsd_triage 2020-06-26 14:18:48 UTC
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
Comment 6 commit-hook freebsd_committer freebsd_triage 2020-07-26 13:07:59 UTC
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
Comment 7 Cy Schubert freebsd_committer freebsd_triage 2020-07-26 13:11:17 UTC
Completed.