From nobody Sat Jun 27 17:51:02 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 4gng824v9nz6jvVH for ; Sat, 27 Jun 2026 17:51:14 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) (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 4gng811CMlz3wTx for ; Sat, 27 Jun 2026 17:51:13 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Authentication-Results: mx1.freebsd.org; none Received: by mail-ot1-x331.google.com with SMTP id 46e09a7af769-7e94c26f9e0so897660a34.1 for ; Sat, 27 Jun 2026 10:51:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; t=1782582665; x=1783187465; 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=xkVencFJIpF1M5g56vODS5AHFuwlxaetGcDqKveLqro=; b=MSdHGQcLXu/sQXQ+Vvc3vNDaaz/WacTpAvDdMWAwCj5+GfxPR3J+yyHgTxG2BF0VT+ s/x0s2qr2ub69ITA4K47D57hupbijsvhNrUUVSP8N6HKSEeDzPkNBprz08WAVUPhGcX8 KOsErSybCURQ9Q/00VF36hJQ9b73B6dlJMxTYWnKOmKdECy3TocyW+janK5CeDLMmRm8 DOOVIk9Oygh6tTN98HgwxXLiRqgYghDBQCuDfwEGAlxHjguMNI90zwAuN4HBXiOzPCrr sHVogSqFf1ZHeO7mvnaWL95XzrdJaX25qY0GgG4X7KR377yfdVbIi+r2KdYyZ86BpA6T /gvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782582665; x=1783187465; 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=xkVencFJIpF1M5g56vODS5AHFuwlxaetGcDqKveLqro=; b=Re/DAuYCFFWQEHHi0HrzMGJFJUv76CfZl6WaZLq0XnCZ4U7kBovyxDUmPZ+7RbjG8m vA5nc3JjfhqmjIEV4IxZOKOiCdC/9g6PsEFwuTuC17/BBpRFnPhnA/iwguXlxBs8UIex lhX1WmEZIgbbrJJOL08Fi3CBZ9ySG2FacP7883BYJv933KZqQdmwjmgGECDpjHEiyRZD DuH8w5xDeCn/+G+JgoqRcEAxZV5kZ02p8Ng1HYJ8MWVas3OPItXYXylzPPDRrmtgLeWg Qnx43Sh+X4dN47q6QM5fhWT8Jk02RqTb47Ikfuu5X+Pvq3d/wKXOe1gHalU39vzj0Cw6 ZZgQ== X-Forwarded-Encrypted: i=1; AFNElJ+jZbRF4kGIjSowfuU/6whFyH8gPyD3TRBJ64Lh/8RA/7+SIN175btWXWF3XXG9iAJlwyLPtIw5+5roDt5ZThWvUB1N@freebsd.org X-Gm-Message-State: AOJu0YzUc5DLUwgQhgA/G3jrGD/v0urHGsZ/7gBec2DdA0ixPd2uZyua OL9D3hjBdudAgIXgXuxdxKjb979R404dPaCtoPuZnOW2CH3Iox0he/3jghg4UsIh+SadJG4j7J7 M1W6ZB3c= X-Gm-Gg: AfdE7cn+0wENuKdJJ9Hvf69OIvnbdePNOU7LjLtdpx34FszLM2vWnxTb+prPJASwA85 axg3nDLO4b9gM6wbXm/GMnJc2kViLMb0DVScrS96d9H5zNsZx8AsEEiBenLUztjVl0p9Linw6W5 O0gpUn5EQUcGRMk2H5qQUls62jejAP8205SVUluHqXX+jcD7Z/4/bGhafqgLx/Y2cjWFQpnOBGD t1CPgIeiOYdxM1b3fcr9Ra4h60r6ohVP2d2nIlxs6nXv0fljJp+drtcBVg27D0EfMU7LDsyblSU r9nLRf3Eg9jCRdn4i6SXVG760MNXYN0JTpBfV9FFUh5HjgdzQ30alwvmTSHWDouryZH2q3O1sB5 sCgFk6kjUq0XuYIEx4B7oLb9aEIdCoeVFepvoolSE3AeX2cYA9kMJI+mIZHVcM3cdPRyFidv0tv qTYr1VI/go X-Received: by 2002:a05:6830:4119:b0:7e6:e0ab:416c with SMTP id 46e09a7af769-7e99c19229dmr10557631a34.16.1782582664919; Sat, 27 Jun 2026 10:51:04 -0700 (PDT) Received: from mutt-hbsd ([97.112.164.127]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7e9aa783eb2sm4328509a34.15.2026.06.27.10.51.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jun 2026 10:51:03 -0700 (PDT) Date: Sat, 27 Jun 2026 17:51:02 +0000 From: Shawn Webb To: Alexey Dokuchaev Cc: Dag-Erling Sm??rgrav , 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> <4hcpjimtjtfgsaloqpcibtjwxrn4kvimboed62ad7qbm2m3f7h@7iyktwsc3pij> 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="vw36bekz5lknpzh6" Content-Disposition: inline In-Reply-To: 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: 4gng811CMlz3wTx X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated --vw36bekz5lknpzh6 Content-Type: text/plain; protected-headers=v1; charset=us-ascii 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 Sat, Jun 27, 2026 at 05:34:46PM +0000, Alexey Dokuchaev wrote: > On Sat, Jun 27, 2026 at 05:15:55PM +0000, Shawn Webb wrote: > > On Fri, Jun 26, 2026 at 06:33:18PM +0000, Shawn Webb wrote: > > > On Fri, Jun 26, 2026 at 02:43:37PM +0000, Dag-Erling Sm?rgrav wrote: > > > > commit f0a861efbafeb81428d5e8c23dac9da73fe14007 > > > > [...] > > > > +# > > > > +# 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)) > > > > +} > > >=20 > > > 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. > >=20 > > Ah, I partially misread the commit. Nevermind about the question above. >=20 > Could you explain? This still looks like a useful function to have > outside the context of local-unbound. rc.subr has a function called check_kern_features that operates in a similar fashion. I suspect the two implementations could probably be unified, but that would probably be orthogonal to this particular commit. I suspect a discussion of maintaining a library of useful shell script functions outside the context of both rc and local-unbound could be had. I'm pretty sure there's quite a few paint buckets at the ready to paint this particular bike shed. ;-) 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 --vw36bekz5lknpzh6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmpADX8ACgkQ/y5nonf4 4frAXhAAji/R34zJ8tx1VwOHnvzRaa3qlELwTT4Am6Wsy5caH4tXdDZbiH2fj4Ln JVIqogitOgjh1w8jVxGYq2fubLE9+IEwyVP2/HFqqCGuY1LjkxyYDg3XxJ9gvevq WQQMf5NO/5YmtkF4wviB4RYhD5ifqrTk5h/4uTn9N2uLuItiBPtXQBiDNhSM+WRS 3CserqEtMsxBRyR3dBZsaeEkf5Wn3NyUzQCuJtzzHUzWBYDZFZDb0Kl9F1PGMLz/ mX1Zpv6oCLVVTqkTbzmqFoTfX6Jjzv8wRn9Bng855tfWhpHm79S0l2q0kcf7eCUG TOcDFPxIsLQHGzjRFYBrKsN4hLYbllo0koVP5Gj4lHSiy8C+VcNTfAVV69gL+15s km+MwYu1C9oJ4fDMcq1Nlqr+z4XK5FHUls8Fs5rJ6O3KRYz+MqcxFHlF4EsghPJ7 OlGlGL9VevKWMEuscTU6IAW44NHxRvyq/2wZhNaOmNDqtcOgvkViZSxIGfBKL5p3 LMjBPaC8gGBj78f6WouaCl6cCrB8fgGrpQu/eo1dzAfUtbS3/LMw3jJ5B0xljr+8 sbnVwv5P4GhxxjHr8snJyQ3lAse45c+IvJxdC8Aoze7UGivxiNHz59t2EJeNW8X6 /tBA8s+TntmebtO8GeJNZCgn1gx8vJqugJhvRJRbXHyEtXIVd6I= =WOha -----END PGP SIGNATURE----- --vw36bekz5lknpzh6--