🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #19248

Re: [PATCH net-next v3 00/10] Deliver TLS session tags to upper-layer consumers (NFSD)

#19248
From: Simon Horman
Date: Thu, 19 Nov 2026 16:35
38 lines
9923 bytes
On Fri, Nov 13, 2026 at 02:21:58PM -0500, Chuck Lever wrote:
> NFSD controls remote access to its exports today by IP address and
> hostname. Neither of these are cryptographically secure. For
> instance, a MitM can replace the response to a server's plaintext
> DNS query. As a result, a malicious NFS client can pretend to be a
> client whose hostname matches one that has access to exports it
> would otherwise be denied access to.
> 
> So instead, we want access-control decisions to be based on
> cryptographically-vetted objects such as TLS peer-certificates.
> In-kernel x.509 parsing would duplicate work mature userspace
> libraries already do, so let's make tlshd evaluate peer certificates
> in user space.
> 
> The certificates are evaluated against admin-defined policy, such
> as whether the certificate's Issuer matches a particular string.
> tlshd then marks NFS TLS sessions with those policy matches. Admins
> also provide a set of policy names on each NFSD export (allow_tags).
> Computing the intersection with these per-export tags is quick and
> completely separate from the details of parsing x.509 certificates.
> 
> A yet-to-be-posted patch series introduces tag set support to the
> exportfs command in nfs-utils. tlshd 1.5.0, current as of this
> writing, already implements TLS session tagging.

Hi Chuck, all,

FYI, while looking over this patchset I noticed that CI flags
shadow len variables in ynl generated C code.

I believe this is a bug in ynl-gen and have posted a patch to try to
address it.

- [PATCH net-next] tools: ynl-gen: avoid shadow local variable declarations
  https://lore.kernel.org/netdev/20261119-ynl-scope-v1-1-d3b0c964d4cb@kernel.org/

...
Technical Details
Message-ID: <20261119163552.GZ860048@horms.kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367148-linux-kernel-netdev=dewy.ru
References: <20261113-tls-session-tags-v3-0-91271964cdb0@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367148-linux-kernel-netdev=dewy.ru
From: horms@kernel.org (Simon Horman)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v3 00/10] Deliver TLS session tags to
 upper-layer consumers (NFSD)
Date: Thu, 19 Nov 2026 16:35:52 +0000
Organization: Usenet Network
Message-ID: <20261119163552.GZ860048@horms.kernel.org>
References: <20261113-tls-session-tags-v3-0-91271964cdb0@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="2927748"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:gBUj172wmZlOBWgC2Xfg6mIGiaw= sha256:eBv1fgxWkBMo+MjUF5q9Xx5LFWnJ1m0z/cTVUGyuSWo=
	sha1:87htQHNqwzNDnprvbl3qJUDLl4Q= sha256:OMyoyFhWwet3lsV/Ih2xBh6JJz4Ig0kBhqyyx8poRl8=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id D8ABB1156E4; Thu, 19 Nov 2026 19:36:16 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id MzaO_xJIEnvf;
	Thu, 19 Nov 2026 19:36:12 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-367148-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 365371156E2; Thu, 19 Nov 2026 19:36:03 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id A8C5883218; Thu, 19 Nov 2026 16:36:00 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795106159;
	b=W43/macPDw4FeWomIFgd/Z8J6qbJoTLPvVyn/17xEUS7yJIWIhiApmz/ZL/FMCdXFNQL
	 AUpDYFxcI6qn6uXzQk2p2CDTTlv8PfG/WdYr1q/+l9sVzLGy0LpyJIMs09e4LaJp7acru
	 tofVtpUNv2wI3HGpqwgtS8yPDyeAN0nhL4YeoEUUjhe+dUHIZg82kX3stI7Wp6jjc8e5O
	 hpuaDjp5HA9RHjTm/ngVr3zzsOsajjly6KRoS5LqHIlO4p/bXUV69J1EG7oECGi3Da9ja
	 pwEwEaBjk06rFBTQSDbOoROCV3T0QOOoG7i1mk3VJszzrpSRShUB1ozAt7J8B1tRrvQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795106159;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=vdpT6LJvyJoZU056rFgJK1cgm13iBFK2/AWVWgyfxl0=;
	b=Yb9kE+i+hTmngdxIVYDa0NHybsMT0itqqhAtGh/vmf1Z0q/nZ+WMqDGroSkkW6cC4ZSj
	 DbC8Sxvrku9VF8BPPg5njo3MGM/SXgaHn6cGN5s+w+84k9HjKyEPOIEhwVJP2FF9I/4n5
	 h7QQG7anpMHEIaZbhoJVcqx/4Ihm+7PxPB8gghavRDhrf2BjO/UlAC5+ROTjQer/gBqa4
	 jL50yAErFZ74tbpXNFRRhlpJFQlzfdrPqKE9L7w3+A9jfhvffWM/s8UxdxsbUen/4RuAa
	 SmE9GVz951epkB3/LmbcRMOdlvoS6QdMQOZ7A3IFk25HY+S3GZiUc/CgCL9JWaUGZRQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gQYSVpk8;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E247606A325;
	Thu, 19 Nov 2026 16:35:59 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gQYSVpk8
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795106158;
	b=mjS6UmYa8Ay2x/qEAr2f2XrjK9c1XCjq6xSI0yjk2MhGUd+fqhD4BAzs3veVnTjHvxkR
	 FoO8V0mKTiRJlWSecX0nVuFcX7EFkcMbmjvCbwtRRt/DHhkYeX5x6HWl2rvTw7j/kWEDD
	 l2+ydm4XGRuSVKlyJbeP7tCaRkwly7JLhXBkjc/Zwjrac8qbQXTK6Vn0RSsEvdO+I6whF
	 95UhscPg1UoRG3KRfIkRiZD5Ku8SzbN1GZ9Ru4wZhEEHYXri1/JCzL/8cULUqHWEqGQJW
	 pYByaZ1vmV04PBMxJ6+eHIFbWFnXaLIgR1KJJfDc7Yl05WOT0UBzeoC7sN/yhRXpQdA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795106158;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=vdpT6LJvyJoZU056rFgJK1cgm13iBFK2/AWVWgyfxl0=;
	b=sl1krUtugMx+K3e+KTssrtawfI6wexaOVujC+9bxxqRh+2nWDKV3snjcmx/iy28H/+QY
	 hOz5r1DTdxxixrIf0JjJLYQjigsXZ6MQpm5+KMvCKpMNuoJ3eUNA/uUC/vAqGrtYK4u08
	 RTB3nWKHo/UuAzkLwiKucoCAa+FdPWu+2YfLD02SndFFRJSlhZNnGFf7v57I1Kakg6Qns
	 1ybvU92vYxmt33AhOE/2zoUmpdO4T7Sq+xnqWNIbxo4RLCroTRNT5RIilBDUq40BnSO8n
	 klSCitZbX3+8bSqyIfpH1tlJH7QsrX9PoiwxUv8A1J1LgIr1z/D7od5Zs3/DIcKc3mw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gQYSVpk8;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3CA86606A324;
	Thu, 19 Nov 2026 16:35:58 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 511101F000C4;
	Thu, 19 Nov 2026 16:35:54 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795106158;
	bh=vdpT6LJvyJoZU056rFgJK1cgm13iBFK2/AWVWgyfxl0=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=gQYSVpk8Ti3Dz/c09ltm5E6cnoyLoK3hTNLppD3CmR67E27lg38E+/NCiyJoo762q
	 1JxZAcpE2jNuyH7arhdRbACTCBIFV5B499W36m5xUxPglxihcgAMnUl6P1qFnWYZ4A
	 ezd6Xu771igMuOdZ5aggHIRRgwgXfRlWMMFAGf478Zt4qaRiCtizOmkjNT/qvfXO4d
	 2MjjshcGxxPN+92CMQDEpdEjqWE48UfVSvxylXsMxjVHk0GG+Z3S8S5vdgqPqRWYZV
	 DCmzsDYax8vY22yr/uMKPF5oDO7+HGcLKgrnNe476l85h2K5RNG1vW5btEEM7rwpZF
	 YE6t540hluycQ==
X-Cc: Donald Hunter <donald.hunter@gmail.com>,
	Jakub Kicinski <kuba@kernel.org>,
	"David S. Miller" <davem@davemloft.net>,
	Paolo Abeni <pabeni@redhat.com>,
	John Fastabend <john.fastabend@gmail.com>,
	Sabrina Dubroca <sd@queasysnail.net>,
	Keith Busch <kbusch@kernel.org>, Jens Axboe <axboe@kernel.dk>,
	Christoph Hellwig <hch@lst.de>, Sagi Grimberg <sagi@grimberg.me>,
	Chaitanya Kulkarni <kch@nvidia.com>,
	Jeff Layton <jlayton@kernel.org>, NeilBrown <neil@brown.name>,
	Olga Kornievskaia <okorniev@redhat.com>,
	Dai Ngo <Dai.Ngo@oracle.com>, Tom Talpey <tom@talpey.com>,
	Eric Dumazet <edumazet@kernel.org>,
	kernel-tls-handshake@lists.linux.dev, netdev@vger.kernel.org,
	linux-nvme@lists.infradead.org, linux-nfs@vger.kernel.org,
	Hannes Reinecke <hare@kernel.org>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261113-tls-session-tags-v3-0-91271964cdb0@kernel.org>