From nobody Fri Jun 26 18:33:18 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 4gn4766Q2xz6hgXr for ; Fri, 26 Jun 2026 18:33:22 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gn47648pMz3VVy for ; Fri, 26 Jun 2026 18:33:22 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Authentication-Results: mx1.freebsd.org; none Received: by mail-oi1-x231.google.com with SMTP id 5614622812f47-48611ccd5aeso862359b6e.2 for ; Fri, 26 Jun 2026 11:33:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; t=1782498800; x=1783103600; darn=freebsd.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=2v0SUCe1i2/oG6Imqx5GM2ns+WzQ01v+u8N2rn8Wqzo=; b=T6FnEzhG5t/qmzzaYTnUO3FhbO0NAmroNe3LThrnouR5xQLwsWthqm9C/2OZadITkG NTiYrHnNgJi3AFW0PonCBQ1mSBK/gpghR1AaS7mo/Y5Wr2EjPqiaqLxONxbaaSdPPSB1 8QERLOSaHWuEW4i0u0SKzgJIz6/OMCaeawSWPcT1IOt4RYDNKLyzdiedw3BSLSkoWMQI YB9yFU5XQS34cnmwdpjwLbtikqItmHfbXrobzSbO7nRgWJxuSZFuTZGd+krUO5E4be67 xfPYjERNod9uxhp56SDqG7C9FQ91n5nyqtNZuj8bA0QX6OeUWCVLazd88paSvi3xRLlE gkMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782498800; x=1783103600; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2v0SUCe1i2/oG6Imqx5GM2ns+WzQ01v+u8N2rn8Wqzo=; b=FDq9jqxIVd/KRyoftA0ZnEeVOlE1q2m0Ij5n9Wmadd9UdPfUdEXTr5m2fbX+rcI4IF 6P14tKAQhZS56+E9ulY7OAPd3Zm4nKbU05GsyV3p8nGOT7n/POpI0/SSlkkfEtyPto4i OTfQz2Jt96SnEzbTAou6//nWWcwKlrti7AHs2Tp+Xb55Xo1sBv0MCssy3ReF9k4nbW9E GoU3oOgWSMnNH/ntylGaP9ZFHJNBIWvi3GlVZ4eqUXllGi6fSJVjVlEJfpyRIkWUjGGB vYrlso5HP915rfsE4zsp0wBSVMncfGOsww4uDp6q2397OKhWfD0S7+ysQARr/TEt32kU TJ9Q== X-Forwarded-Encrypted: i=1; AFNElJ/es8poZZ4VLGpUJGBSX9KSvZpE960YNRhPZgLy5htNx4WjCPBsUTa6Po/XeO8zyAKsjYFrqx/05EJHBqC6FfGJSROM@freebsd.org X-Gm-Message-State: AOJu0YzboD/G9FlGQ3U56oEotSsaa5OhAz4hGacZFk2Du0y5/9cW1a4C qc0ZV3QNwwf7Xft/mGUoy4sv+/TglIY2K7cbjMy9IC9s9/uyOUmfDkBa/xrT1uTNaIonMt0KHB3 89QELguY= X-Gm-Gg: AfdE7ckKpm/PbNhGS2+nRsTGdyM43shnQO72W6fH5BWEBXe6E4pEA0tgUK806HiMJJW IOausYEqMnY+FQP7ebQGwsdzI5XR2/mtloIFP42AklERz9tlZnooZR5G52GPWwGTyaGL+F3ANKi 7UAtRrjJFX0ZfOjXHiUz5MW5UHxvAijJxxVsd4ieMEyAKvOcOr1Ah23tkJkRVdq2NFieOFhxgzx jPlVP/fOXdeqHtxW6HUHClynbI790TTAJL11tCDV3RZM5aIWBbG17M9YPAgKpeQJ26JtsX2XLR2 7BRYPr5jjedBlAAGZkHFgKgAPD/ZMZQx3ijAWd95HSaQYIB+8br8P9c7XLcPpJIdb6aou57/sa9 JldccTB5fz20lYoP1PkmgL9tt4px2xXxIKh+6s3SXZGIXl02LU1dlwxLIlAQDCb0dP5HSvHPMue pqQ0+LvSHE X-Received: by 2002:a05:6808:2207:b0:482:a7bf:dbf with SMTP id 5614622812f47-4921791be04mr6528506b6e.15.1782498800161; Fri, 26 Jun 2026 11:33:20 -0700 (PDT) Received: from mutt-hbsd ([97.112.164.127]) by smtp.gmail.com with ESMTPSA id 5614622812f47-49352506021sm1934917b6e.1.2026.06.26.11.33.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2026 11:33:19 -0700 (PDT) Date: Fri, 26 Jun 2026 18:33:18 +0000 From: Shawn Webb To: Dag-Erling =?utf-8?B?U23DuHJncmF2?= Cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: f0a861efbafe - main - local-unbound-setup: Support IPv6-only systems Message-ID: X-Operating-System: FreeBSD mutt-hbsd 15.0-STABLE-HBSD FreeBSD 15.0-STABLE-HBSD HARDENEDBSD amd64 X-PGP-Key: https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/blob/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc References: <6a3e9019.1f234.5366f33f@gitrepo.freebsd.org> 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: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="o7f66nzj63r24l6t" Content-Disposition: inline In-Reply-To: <6a3e9019.1f234.5366f33f@gitrepo.freebsd.org> X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4gn47648pMz3VVy X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated --o7f66nzj63r24l6t Content-Type: text/plain; protected-headers=v1; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: git: f0a861efbafe - main - local-unbound-setup: Support IPv6-only systems MIME-Version: 1.0 On Fri, Jun 26, 2026 at 02:43:37PM +0000, Dag-Erling Sm=F8rgrav wrote: > The branch main has been updated by des: >=20 > URL: https://cgit.FreeBSD.org/src/commit/?id=3Df0a861efbafeb81428d5e8c23d= ac9da73fe14007 >=20 > commit f0a861efbafeb81428d5e8c23dac9da73fe14007 > Author: Dag-Erling Sm=F8rgrav > AuthorDate: 2026-06-26 14:43:26 +0000 > Commit: Dag-Erling Sm=F8rgrav > CommitDate: 2026-06-26 14:43:26 +0000 >=20 > local-unbound-setup: Support IPv6-only systems > =20 > * In the server configuration, disable protocols not supported by the > kernel. > =20 > * In resolv.conf, instead of only using 127.0.0.1, use either 127.0.0= =2E1, > ::1, or both depending on which protocols the kernel supports. > =20 > MFC after: 1 week > Reviewed by: jlduran > Differential Revision: https://reviews.freebsd.org/D57840 > --- > usr.sbin/unbound/setup/local-unbound-setup.sh | 50 +++++++++++++++++++++= ------ > 1 file changed, 40 insertions(+), 10 deletions(-) >=20 > diff --git a/usr.sbin/unbound/setup/local-unbound-setup.sh b/usr.sbin/unb= ound/setup/local-unbound-setup.sh > index ec3aeb673ecc..6b217ec574cd 100755 > --- a/usr.sbin/unbound/setup/local-unbound-setup.sh > +++ b/usr.sbin/unbound/setup/local-unbound-setup.sh > @@ -72,6 +72,19 @@ RE_forward_addr=3D"((${RE_ipv4}|${RE_ipv6})(@${RE_port= })?)" > RE_forward_name=3D"(${RE_dnsname}(@${RE_port})?)" > RE_forward_tls=3D"(${RE_forward_addr}(#${RE_dnsname})?)" > =20 > +# > +# Check if a kernel feature is available > +# > +has_feature() { > + local name=3D$1 v > + eval "v=3D\$kern_features_${name}" > + if [ -z "$v" ] ; then > + v=3D"$(sysctl -qn "kern.features.${name}")" > + eval "kern_features_${name}=3D$((v))" > + fi > + return $((!v)) > +} > + The function above seems like it might be useful outside the context of local-unbound. I'm wondering if this would be a better fit for libexec/rc/rc.subr. Thanks, --=20 Shawn Webb Cofounder / Security Engineer HardenedBSD Signal Username: shawn_webb.74 Tor-ified Signal: +1 (719) 756-1197 / activist_opsec.27 https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A= 4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc --o7f66nzj63r24l6t Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmo+xd4ACgkQ/y5nonf4 4fokIBAAgKWBEYIfmF3JWpbF6vhFIpXVUIp4W/0NErQQRe/NXU87EPcgc7APlXBk X7CMVygXu2kbOjvxErrcPzvZq/MkPuzy92igG1y0eeD0zTaIQq0P7yapwERimOx/ emghJhY/c11luf8cFAwjd+WFHQG0bgax+0ifXEXLAYUtGZ95+AQrk1z0iJQZp4W9 HerfLX4qxTKZeMu3p+zrbvBNNAoNVdbFJVUUcdx9PQPawS8n1OJMEyAEUYZ++NnY bbSWPL7QJGHpavbrPfLuBvdPi5QTJYgM03EBHHcFrKYJhLnsXIBb/h3AbDbjrbhI M/tqwLe6IWHbczVBh3d6zF2QEiQuDpcg5+LpB+ibTm7/LdLMREc4QcrY133B+9Xg ghfOg+lQIhm/yhiKaVSA0mc2rO939e/djAVbi2HnSpvWO6+DBRvYRwRtfPAZ8Zq1 xkHeZhp27rQ5myEgifbcU7urF2CqlKiyJByQCk0axEgb6qXotsID3wHTjhj95mQx fsh+jhkZLgqOvw+hkULtsHD5Wd9WAhTKwrXrrhN9UCO8bhuCRTo69hPTXfRVlwrp 0PkTC74PZWM4KWRlKKZgqxinjdg/1AAoiiDqbXCxYUrF6IWFAQCnR135Pz4h0aeD gaNJHo2ndXhaS8c97d+8fnYDaLbbv97eUSndJZWiPtzYYSH7Y/w= =r0P8 -----END PGP SIGNATURE----- --o7f66nzj63r24l6t--