Article View: linux.kernel.netdev
Article #20620Re: [PATCH net-next v3 00/10] Deliver TLS session tags to upper-layer consumers (NFSD)
From: "Chuck Lever"
Date: Mon, 23 Nov 2026 00:59
Date: Mon, 23 Nov 2026 00:59
47 lines
12483 bytes
12483 bytes
On Sat, Nov 21, 2026, at 7:13 PM, Jakub Kicinski wrote: > On Fri, 13 Nov 2026 14:21:58 -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. > > I submitted this for AI review now, I think due to the problem > Simon flagged CI didn't just gobble it up automatically. > The AI review will not be emailed to the list automatically but > hopefully it will be ready here by the time you read this: > https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261113-tls-session-tags-v3-3-91271964cdb0@kernel.org There are some drips and drabs here. I can re-roll, and think more about higher level policy-based access control. > Any examples of APIs like the one you're adding working well? I found one or two while developing these a year ago. Nothing is leaping to mind at the moment, though. -- Chuck Lever (Come to NFS bake-a-thon! https://nfsv4bat.org)
Technical Details
Message-ID:
<b76fc2c2-466c-4638-876a-3f9af436d29a@app.fastmail.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368923-linux-kernel-netdev=dewy.ruReferences:
<20261113-tls-session-tags-v3-0-91271964cdb0@kernel.org> <20261121161302.69f202c8@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368923-linux-kernel-netdev=dewy.ru
From: cel@kernel.org ("Chuck Lever")
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v3 00/10] Deliver TLS session tags to upper-layer
consumers (NFSD)
Date: Sun, 22 Nov 2026 19:59:56 -0500
Organization: Usenet Network
Message-ID: <b76fc2c2-466c-4638-876a-3f9af436d29a@app.fastmail.com>
References: <20261113-tls-session-tags-v3-0-91271964cdb0@kernel.org>
<20261121161302.69f202c8@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
logging-data="3759107"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:hXGU//8FUuXfC4D/h9M7WoddnQM= sha256:wksFLKVirrU5JvTOTe841UnXXD9GKlRggSJmqI2TMuU=
sha1:Ado4pkhjl3oGNfqO5RGzw54FbPs= sha256:X4Gp/iG9GCfP5wcDxJ91cn6tBmuC2E9X8YU8nfKAGGg=
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 6CA9B125D88; Mon, 23 Nov 2026 04:01:00 +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 bKYJD8iSHkrV;
Mon, 23 Nov 2026 04:00:56 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-368923-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 82017125D87; Mon, 23 Nov 2026 04:00:48 +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 474252EA0F; Mon, 23 Nov 2026 01:00:20 +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=1795395619;
b=rm2bKb7utTNUys451iz/X9HPSb7lfQlQB0flAPIi0KjLKL9lRc8sY2zq3nJAmvLO9qSW
NZiss8wwkgKRogjXowSC+QmJNbTbQuoFQpib6UG7BoHrhWnOBXj1A2akkhffldUt0NO3n
x4NNo4VXuAh63UANu6R3KaWzpqw8MMu6DV32IDKxCt5NQ1Lr3oUtMz3lj/WrGUS6Cq/bl
P3in6xtBJZ72h58u5jP+c2E0muh6hkzyDCzSLsrqJ0OY2EY3saDlbbDUY2vDKSXtRchtO
5FF3ebza0am5uxeHF+9Xw79gTGb6eUcXhvPqHzLqyDdvah6b08pFRt3ogzIyspobY0w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795395619;
h=X-Original-To:Received:Received:DKIM-Signature:Received:Received:
X-ME-Sender:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:Received:X-Mailer:
X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:X-ThreadId:Date:
From:To:Cc:Message-Id:In-Reply-To:References:Subject:Content-Type:
Content-Transfer-Encoding;
bh=iLrnKxxVMWKMeMeAgoH7MuH9sETQs3VlmpYHt8ql4sI=;
b=iHpi+ZWrOilqzydsQgFO6MILp/FCs+hnG3RyxELi/RJS8gFykE0p+94lG1WuqB1Dxr1Q
FY25/VMsZ1Xq9f7HjFfqO0zQmaI1JH8J3bSK1EPtd8PZx+Kqq99JVMXvPMm+5UunInEwA
8/6Dbgz37nGqPyk8hH8cQp6+pNwxnDt2me1akjSHXapqc/UdkeuSUR/T8IP8XHp0QPm9u
HGkC7vGufUL2ZCqMadwfAOH9QO+WFMtrGaaD67QE0rh8hXf+NmgrKgRe2CN2L/50q9GRs
+Eacfm43iHZ193isYxoavzLiWBSq+mV56zuDXfk6RtPwQKwzcLbR22cIJZ9WRCvyo4Q==
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=CsxJXzR1;
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 17869606A684;
Mon, 23 Nov 2026 01:00:19 +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=CsxJXzR1
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=1795395618;
b=32Oee/8LLZfNJeY5cCgXm4gWE1HwV6LJTnl7FixPlcIHrHwhKdXtXIIQ1aiw49BvT3F/
uNd9/TE4eZeQ7OQlaoAAcz5gjEzJFLSKeevQG5C68986VPme3tcagaBLS0vDMxs/VSLEK
LzeGV4wJO+bJIZgyaB1M6SwJvi/wyx0LYCDJzVkrDB5SY4skPxXZtYG3Ly6RUbZjwkuFc
NHCVhRqAX7axC+tSqM5ga77VHi26uJmSj+T+P4mGh1+f/9gDGBu/j0zvN5Bq8fnhNe9AU
gtt6BSAtBOA4edHN0YpURTWY551O4weXLJ0B/KobYC33Nrtxo9IAiTpWYf2hw8HlDAw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795395618;
h=Received:DKIM-Signature:Received:Received:X-ME-Sender:
X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:Received:X-Mailer:
MIME-Version:X-ThreadId:Date:From:To:Cc:Message-Id:In-Reply-To:
References:Subject:Content-Type:Content-Transfer-Encoding;
bh=iLrnKxxVMWKMeMeAgoH7MuH9sETQs3VlmpYHt8ql4sI=;
b=DOWcCik5wEUojNaMa42mCk86Oz+8dV3QLC9lb4RC9sYHlX38ajzZ9sVQsMP2/VQ7O3s2
rmqXswi6NLIIZBEX2sfIpf6L1xseScXTBFk8Bop/EcJRENgk0Ft4qxYWobRZFBtZipSd3
In0Td3R0mUZsZfM2sd0bEjvCsWERZ76cFOfpu/6ot65/cMNB3kob7JNTbDtvWxgkXnHjB
CfTOFmvWWs+aY8kbABZ+LF/+aPV7adKz8dOOTix9/WPysb0Ouriqi9pSoLD2SvQETr9Wy
NaPJl9n5Cfe34F1mdZeZT6a3xRlMmW937vRyJkIPAm2/Je1DAeSESef4x2P8TTJF8LA==
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=CsxJXzR1;
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 3544C606A32D;
Mon, 23 Nov 2026 01:00:18 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A9421F000CA;
Mon, 23 Nov 2026 01:00:17 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
s=k20260515; t=1795395617;
bh=iLrnKxxVMWKMeMeAgoH7MuH9sETQs3VlmpYHt8ql4sI=;
h=Date:From:To:Cc:In-Reply-To:References:Subject;
b=CsxJXzR1yflwMnj8XPbzLcPCJmf70siSQZaD/VFXj0qrc7OmQbPjZKWb6v7NUd97p
EVgTwO478HHWS0KM3ejN5NFaQDfiovYLGaIFk/jqhi/d/bc40penOkQnCwCjKzxiLC
yXr5ITyUVKhoz0ayrlF8wOHVIGvf2t2NWQqbpA6LtNSn6hpvmAPvkpsAs5MLkioiJT
CUUm6HKvIMtH47SbOJ/xbyJ4P8UHzzMsHrq4ycDpt//TR2rNRV3ZxKyOmlWAyAsyM1
nqac3iYrMpm4VRK2JBMIBbGiHdBKMmds3Eq52DD8dRrl4NPx3SNhIC8a3ww2MrMXyw
ron5q8LYyDA4g==
X-Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50])
by mailfauth.phl.internal (Postfix) with ESMTP id 6EB60F40068;
Sun, 22 Nov 2026 20:00:16 -0500 (EST)
X-Received: from phl-imap-15 ([10.202.2.104])
by phl-compute-10.internal (MEProxy); Sun, 22 Nov 2026 20:00:16 -0500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I-glyEWAKNNR6eCa_YplXYYaAg>
<xmx:IJADa2QQ72b8k_XUKhSAfqzxdUmM6n0BgsgzQFMq0W7EM-xYGnzUaA>
<xmx:IJADa9Er_AzpJ81CrK5IEChZ9fPPJmpYEvNOo-MdKuZvbqLn-BZDi3o4>
X-Feedback-ID: ifa6e4810:Fastmail
X-Received: by mailuser.phl.internal (Postfix, from userid 501)
id 438A0780070; Sun, 22 Nov 2026 20:00:16 -0500 (EST)
X-Mailer: MessagingEngine.com Webmail Interface
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-ThreadId: A8Z6fJDuAPLk
X-Cc: "Donald Hunter" <donald.hunter@gmail.com>,
"David S. Miller" <davem@davemloft.net>, "Paolo Abeni" <pabeni@redhat.com>,
"Simon Horman" <horms@kernel.org>,
"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-In-Reply-To: <20261121161302.69f202c8@kernel.org>