[Bug 295064] pfctl: rejects weird interface names in dynamic address references
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 16 May 2026 16:45:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295064
--- Comment #4 from commit-hook@FreeBSD.org ---
A commit in branch stable/15 references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=9d0b771caa49eb77176d8f8cece8d1232dffe7f2
commit 9d0b771caa49eb77176d8f8cece8d1232dffe7f2
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2026-05-07 09:58:17 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2026-05-16 16:44:00 +0000
pfctl: relax interface name requirement
The FreeBSD network stack, for better or worse, does not impose any
requirements on interface names. As such it's valid for an interface
name to start with a number (or indeed, be something like '⭐').
Allow this in pfctl, and add a test case for the specific case of
interface names starting with a number.
Note that we don't support UTF-8 names fully, so those may still fail.
PR: 295064
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit 4e7c1ff95a5187faee524055f22c4cf4134d1147)
sbin/pfctl/parse.y | 2 +-
tests/sys/netpfil/pf/names.sh | 40 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 41 insertions(+), 1 deletion(-)
--
You are receiving this mail because:
You are the assignee for the bug.