From nobody Sat Aug 22 02:18:40 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hRgpF5Vgnz6pylH for ; Sat, 22 Aug 2026 02:18:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hRgpF4ndhz3d9d for ; Sat, 22 Aug 2026 02:18:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1787365125; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gQiuZy+9Y5lk7uEHk8NcpmL0pSyudNMXj3WI3Eu7Zns=; b=c4qfUTs9RyuB+GJJN9Wql4VlUVH+ot6VR6as451TbXDFwC3UThLVJwgGzCYk6CHLW32jqe X/iFJPn/Zi9OL/hdh5V8BNn+5N45sJEpiwj8hBjH/KFSIO/XddaYGPUEb6GtbrEMYhIn2K L3Dk7HmKGMgYCWD4L+elVwP8wWdAw2hahF2EcxyUdTXrL4Ogm+0NcS3WxV0CZ12uA8VdO1 ZrZ5Hadwg3wikiFGLpv0RZ1w8FR0bkf5k6vkvGghjv6UV5mz5Qo0SDQgKezdB+tp8fDO3F UnxOtyo5E+zkovBPFJ4lE+7Bf81xxtqELHTnjBolTa4v12nHvhRP7e90TnxJbQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1787365125; a=rsa-sha256; cv=none; b=FwoN4krlwXmNfleQuVjk2msN02NKGuMmHFhbiAVIvOtziwhoZcTvSxt+10+CXc7C9iqIYn gqVfgDPC8qtUFJdqa9KK8dxoxutuVibIh9BB0eO9+lCQybPWx2Xy5XvHTUJu3AzYgOsbjw Wi4Oo0OEcfQnxk2INpyaOY9yxUhyLhDHYZnigDYicgrnhZaOuKja/WZ58IhdpRPiForbto RSfVafYjV9ObLfJV57RgZ2kQ8UvvnY1iGGcgDjOXeDkxKny4s6oDJIRbcB0lePzmn1Y+hO lZMauc4euUNDNteQqS9rNkRYsIzJ6sl64i+YnL2Pqf0zJltZn7sXRSP/gPty2Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1787365125; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gQiuZy+9Y5lk7uEHk8NcpmL0pSyudNMXj3WI3Eu7Zns=; b=Usi/+dZHpk/t/p/f5hTxi/UPPn5gErdoZRW9+s3LqeZpl9HXCaK6cHR5Z1rqJ/mIT+p+bN MDOPjE65tB/NG8PukI4swJEcg5HWn0boeDHiK03K7WNQkLRG3r3/vdZ+YLec/Z/XRyTYKT Pm7HPUU5YxPFeLY7l2H6d9l6qcctVkyaKNqIyMlgxIxZrMLv4MIR21Nes+zcuMfAVQBIW4 Pb7dxDD8w1iEHwVIItAhyX6+TKSBovIfyUQHIl2qhPTvraGLhIfpTmEbiQ3mQ8inV3ocwG C8HSHA09z7vSf7T02trH1Fo2NpedOaOK0pHMeQfXKZyZoGtHsDnsYjx79sLyNA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hRgpF3j1NzTvt for ; Sat, 22 Aug 2026 02:18:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 376b1 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 22 Aug 2026 02:18:40 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Cc: Jose Luis Duran From: Devin Teske Subject: git: 60848a08b093 - main - examples/jails: Allow any character in interface names List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dteske X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 60848a08b0931abfdfb812fece93258d47377541 Auto-Submitted: auto-generated Date: Sat, 22 Aug 2026 02:18:40 +0000 Message-Id: <6a890700.376b1.1fd20197@gitrepo.freebsd.org> The branch main has been updated by dteske: URL: https://cgit.FreeBSD.org/src/commit/?id=60848a08b0931abfdfb812fece93258d47377541 commit 60848a08b0931abfdfb812fece93258d47377541 Author: Jose Luis Duran AuthorDate: 2026-08-22 02:12:24 +0000 Commit: Devin Teske CommitDate: 2026-08-22 02:12:24 +0000 examples/jails: Allow any character in interface names Interface names have no limitations on the allowed character set, only a length restriction. Widen the allowed character set for interface names to include any printable character. PR: 290916 Reviewed by: dteske MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D53865 --- share/examples/jails/jib | 8 ++++---- share/examples/jails/jng | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/share/examples/jails/jib b/share/examples/jails/jib index a4de22da2b49..44d53c44bf11 100755 --- a/share/examples/jails/jib +++ b/share/examples/jails/jib @@ -7,7 +7,7 @@ ############################################################ IDENT(1) # # $Title: if_bridge(4) management script for vnet jails $ -# $Version: 9.0 $ +# $Version: 9.1 $ # ############################################################ INFORMATION # @@ -111,7 +111,7 @@ # ############################################################ GLOBALS -VERSION='$Version: 9.0 $' +VERSION='$Version: 9.1 $' pgm="${0##*/}" # Program basename @@ -258,7 +258,7 @@ jib_addm() shift $(( $OPTIND - 1 )) local name="$1" - [ "${name:-x}" = "${name#*[!0-9a-zA-Z_]}" -a $# -gt 1 ] || + [ "${name:-x}" = "${name#*[![:print:]]}" -a $# -gt 1 ] || action_usage addm # NOTREACHED shift 1 # name @@ -368,7 +368,7 @@ jib_destroy() done shift $(( $OPTIND -1 )) local name="$1" - [ "${name:-x}" = "${name#*[!0-9a-zA-Z_]}" -a $# -eq 1 ] || + [ "${name:-x}" = "${name#*[![:print:]]}" -a $# -eq 1 ] || action_usage destroy # NOTREACHED mustberoot_to_continue jib_show "$name" | xargs -rn1 -I eiface ifconfig eiface destroy diff --git a/share/examples/jails/jng b/share/examples/jails/jng index e8d24f3d00ab..48dc3eb67967 100755 --- a/share/examples/jails/jng +++ b/share/examples/jails/jng @@ -7,7 +7,7 @@ ############################################################ IDENT(1) # # $Title: netgraph(4) management script for vnet jails $ -# $Version: 9.2 $ +# $Version: 9.3 $ # ############################################################ INFORMATION # @@ -138,7 +138,7 @@ NG_BRIDGE_MAX_STALENESS=4294967295 ############################################################ GLOBALS -VERSION='$Version: 9.2 $' +VERSION='$Version: 9.3 $' pgm="${0##*/}" # Program basename @@ -410,7 +410,7 @@ jng_bridge() [ $# -gt 0 ] || action_usage bridge "too few arguments" # NOTREACHED local name="$1" - [ "${name:-x}" = "${name#*[!0-9a-zA-Z_]}" ] || + [ "${name:-x}" = "${name#*[![:print:]]}" ] || action_usage bridge "invalid bridge name: %s" "$name" # NOTREACHED shift 1 # name @@ -543,7 +543,7 @@ jng_pin() mustberoot_to_continue for name in "$@"; do - [ "${name:-x}" = "${name#*[!0-9a-zA-Z_]}" ] || + [ "${name:-x}" = "${name#*[![:print:]]}" ] || action_usage pin "invalid name: %s" "$name" # NOTREACHED for jiface in $( jexec "$name" ifconfig -l 2> /dev/null ) @@ -650,7 +650,7 @@ jng_shutdown() local name for name in "$@"; do - [ "${name:-x}" = "${name#*[!0-9a-zA-Z_]}" ] || + [ "${name:-x}" = "${name#*[![:print:]]}" ] || action_usage shutdown "invalid name: %s" "$name" # NOTREACHED jng_show "$name" | xargs -rn1 -I jiface ngctl shutdown jiface: @@ -697,7 +697,7 @@ jng_stats() local now="$( date +%s )" for name in "$@"; do - [ "${name:-x}" = "${name#*[!0-9a-zA-Z_]}" ] || + [ "${name:-x}" = "${name#*[![:print:]]}" ] || action_usage stats "invalid name: %s" "$name" # NOTREACHED if ifconfig -l | xargs -n1 2> /dev/null | fgrep -qw "$name"