🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #21906

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

#21906
From: "Chuck Lever"
Date: Tue, 24 Nov 2026 15:27
80 lines
13242 bytes
On Mon, Nov 23, 2026, at 7:34 PM, Jakub Kicinski wrote:
> On Sun, 22 Nov 2026 16:27:08 -0800 Chuck Lever wrote:
>> On Sat, Nov 21, 2026, at 4:13 PM, Jakub Kicinski wrote:
>> > Naively I'd think it creates unnecessarily wide API on both ends
>> > (handshake and server). My knee jerk design would be to populate
>> > the full policy in the server, and only carry some "policy ID"
>> > thru the handshake. Number of policy IDs would equal to the number
>> > of tag combinations (which result in different behavior).  
>> 
>> How is a tag much different than a policy ID?
>> 
>> It wouldn’t be impossible to impose another layer here that makes
>> a specific set of tags into a single policy, but I’m not seeing
>> that doing such adds a lot of value.
>
> My thinking was that we have two user space components (TLS handshake
> handler and the storage server stack) which are required to render
> their decision in the language of tags, and upload the result
> to the kernel via independent APIs. The policy ID limits the kernel
> to mechanical enforcement.

That is basically the structure I have planned.

- tlshd parses the x.509 certificate and assigns matching tags to
  TLS sessions

- The exportfs command assigns tags to NFS exports and passes the
  tags to the kernel as part of its usual downcall

- Kernel NFSD grants access to an NFS export only when there is a
  non-empty intersection between the tags on the TLS session and
  the tags on the export being accessed.

This might be more helpful than the scant series cover letter:

  https://github.com/linux-nfs/ktls-utils/blob/main/man/man7/tls-session-tags.7

It describes the configuration of tlshd's tagging policies. The man
page actually describes how these things are stored in YAML; to
make it easier for humans, we could build a bespoke editing tool. 

The exportfs command will get an "allow-tags=" option that specifies
the set of tags that are granted access. I have some prototype
patches in a private tree, so nothing publishable here yet.


> The components resolve all decisions in user
> space, and give the kernel full list of policy ID -> allowed resources.

Yes, exactly so.


> Could be purely a subjective preference, I won't insist.

I will do another survey of policy mechanisms, as you suggested, at
least for reviewer reference.


> Tho an ack
> from someone experienced with building kernel (security?) policies
> would be awesome.

Agreed, review welcome. I'm open to suggestion on modifying the Cc:
list.


> BTW someone marked the patches as changes requested, so repost will be
> needed.

Yes, I plan a re-roll to address the sashiko review findings you
referred me to.


-- 
Chuck Lever
Technical Details
Message-ID: <fbcfb7b2-4cd9-47c9-9cd9-1186a5b15059@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-370515-linux-kernel-netdev=dewy.ru
References: <20261113-tls-session-tags-v3-0-91271964cdb0@kernel.org> <20261121161302.69f202c8@kernel.org> <7a0695c2-bf7a-4394-8cfe-a92deeba51e3@app.fastmail.com> <20261123155242.49d87894@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-370515-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: Tue, 24 Nov 2026 10:27:45 -0500
Organization: Usenet Network
Message-ID: <fbcfb7b2-4cd9-47c9-9cd9-1186a5b15059@app.fastmail.com>
References: <20261113-tls-session-tags-v3-0-91271964cdb0@kernel.org>
 <20261121161302.69f202c8@kernel.org>
 <7a0695c2-bf7a-4394-8cfe-a92deeba51e3@app.fastmail.com>
 <20261123155242.49d87894@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="4169372"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:6pz1eimHFtQwB2G8Yc262oMBYb4= sha256:76xE0F5knSEGnyUi1rS3Qzfr1nxtZ2rsqwtlvM8nnD8=
	sha1:qzlciI7RXMsoR3YChe8XmgVlCe8= sha256:o84SU9Zx6rpG1ZcVWXkBtmtmv1ecPvj6xcverNpntxA=
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 4C68E125E20; Tue, 24 Nov 2026 18:28:24 +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 Bdg23dktxJPT;
	Tue, 24 Nov 2026 18:28:20 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-370515-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 C799B125E1D; Tue, 24 Nov 2026 18:28:11 +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 D5C1735D46; Tue, 24 Nov 2026 15:28:09 +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=1795534089;
	b=Qd0uu4Drki+WelWf/3MS1MtfOsBqn0G7ccZaLHgvk12rnUyPibapdhcPheC+yEyW6Vr2
	 DWJ+j+zoYWPO/8DpSkl2hQ7XrzRkwJZ4Xf/n+iaGfpwz9ATEDJOs8JOoaydNBssm6MNCp
	 IcBKfPWxqP2eVWKX8aDJmvlgZvDlpqFZCI1rt16gsItC4GbQhZwAFXhCEZ5t89Zsmkwr8
	 bUxzsi4p7wKmJ+5p/GCTHwAShzl4Tu+EoU/AbJLB2wRWozw8PO4f1gLdzVh/7VG2CjPtU
	 U8m0g9UxLXCjkqIRkWBOb6eea5dP/nmLcH4pQsEWN5cLI+u4FSij6GYdherfJLoS/6A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795534089;
	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=946ec9uZoayF6niegcR4Rr8CIDVjkdBCZGxp/mlLHkc=;
	b=dWgyIdcN2pEHliYdTyiyVeTe4XOpJ7fHvgfuUliHFlNSgfwEyHnOoVqejAr2NUw+/SAV
	 1hwo2k5GmvOw/9ytxbpyfygrEqLv70Cgml1bZDErODOTDJTKRONOa1m+kgIZMIxELdZPv
	 U+PGR/mfYkl+Wf0Tq2mScD/OxeShbQFky6bdqSc4eHmnanxMJqmdy2wAvXxweJqqLNXgo
	 PiyCWRFndZYx2MkzuXSFNbCaQi3C1vjjDNEr/JkFOTiBHBYb7gu4ivIT61O/Oyki/1Pe1
	 6MPo4CDdJzPhgepW5A8iDPF1B5S2jqtES7PlpeDSp3koW2sn0gcQMyDxQv9D35i52yw==
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=IWT4N0tu;
	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 0426D606A330;
	Tue, 24 Nov 2026 15:28:09 +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=IWT4N0tu
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=1795534088;
	b=SDIHbVRvEa0i25LXdXbl29gs7ytko6c4lerMWW4RnJxD8K5FMCQ7nFjTXuvNTQee0sdd
	 bbBOyjK/dDE8L+IGG47BCiLKas8CKLI/CevdSVsTwRmQyqg/QPHHjVoY7xMQjXz0Zreoe
	 hrosMVKw3zdbrxyuoIoCAuJm5DNkN6rO3iIDJavNmasPWlwAyWzsDenXrbI3m+AkHd+ZO
	 u5gaVKuTzreqAvXrvniERqwV8W2yrWZrTrwgTDOPx57oZdYY4srLoQKv/ylluJDtWYStw
	 2kwW6eRQnrecNEdAJPXnGmMFbrPfkjfXLNLid+KoZmVvtlZ/aDOd0zMuV5rj9LxIMNg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795534088;
	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=946ec9uZoayF6niegcR4Rr8CIDVjkdBCZGxp/mlLHkc=;
	b=LtxyjHioYueZ2gWY/RPEVAcVUVOEbIGFv74JhH0N2N4jFI2pwGNt2avQUJWbFRjnzg6O
	 TfwYncdoxcgfF1pWVVgt4Ya+CN8zgvtwWqyw3798uwkIKR1aCaWXgMU2W6VjSGJpZhdhz
	 UpaOYePVtAdT0Jzrh23fpoj5VwFtK4RyG8K5TeYKaBAhAuHOM7VdSMiahFmMdFe/M2yWc
	 GMySJ3pjHrN6XgGMl0LIfu2pag8dEbdKWXULEVhA42ERZjrAeSZsvA+iD1oMPHnqUnzI1
	 GQ/CeNS4wSp5fZKRfsIJ5z7fcWu2vQ6p2c6JH+0rPSeiLi+hMRT5zILgDejZkwMh4gA==
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=IWT4N0tu;
	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 1D86C606A323;
	Tue, 24 Nov 2026 15:28:08 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FF1D1F000D3;
	Tue, 24 Nov 2026 15:28:06 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795534087;
	bh=946ec9uZoayF6niegcR4Rr8CIDVjkdBCZGxp/mlLHkc=;
	h=Date:From:To:Cc:In-Reply-To:References:Subject;
	b=IWT4N0tu9LxKsrrXsZ1tSnZeK42PPUoUCk8n/FMTFiAMrIz8MSaY043+096F7X+sb
	 ZaS/qCn4t62wfgaYzRRfsVEo+1bEE9rolLbuZFWKUPp8HAnhsnj8py+Y1bedYP15B7
	 Kw9K3S1ZFq4T7i8r6+ZxGZF3vhI6ekgZsd98xJWGAa09UAE7X+IkWmoV5sd71qHrc8
	 n1I9j1Ti6nPn+gSDKxMbz1y+Orua7nRXtu5VkBxhePCVEiQw2VNavwgVJkDTR3V6+n
	 grnLobhMEde9zaA2o97FMCRID85iTqvRBR1CiWJOja69oOQvlgL4MPqX+WjZ0K8qDs
	 aAfnFHe4ykFrg==
X-Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50])
	by mailfauth.phl.internal (Postfix) with ESMTP id CEEC9F40066;
	Tue, 24 Nov 2026 10:28:05 -0500 (EST)
X-Received: from phl-imap-15 ([10.202.2.104])
  by phl-compute-10.internal (MEProxy); Tue, 24 Nov 2026 10:28:05 -0500
X-ME-Sender: <xms:Ba0Fa1G4Llv2NB1_WVZXdcUQIg2hcdZZdQLFQnKB2u6dyxAcZrBIIg>
    <xme:Ba0Fa1IUuNBUHhtk7GoeugYCHZdMf28B-F4gWoJXbUMFMgp3dq35UCki2kN6aBe3_
    R2VjghtMikYERTOQqWI2KZeMDoS-9-NtvLDgREz6VO6nb4KlB4AAAOf>
X-ME-Proxy-Cause: dmFkZTGFJZDUBuTX/zDjzwu8yflFHzRnhD42ZVk+TPJsCJt4ylKPgTsw1FN45Yj2JOSuFn
    JOP/Qtyx+HMEGRKKCgksavD1tnPkvpPnv7pLbINWjuuQYhTon6UwHHs+ikbtTzbMFBcT+p
    I6Fsnago8uWw03dJkVIxoPYosAhm4Q8mlXMvJT5X8rEntFkEru7HnQqooDS7isvwz90b6K
    aXnVLMDYGRrz6pWAbX1OSmKrZLaAql2KuXF75sGdpbrB8tV21WVFvvwyOl7nDXy+y2sGDo
    8jy39bzJTQB0u5OEAmnKbzZBm6TP8BCtns9GFsFRDvz/u89xNOpm2hX7S9xhKfyKGSK+CA
    +G5YhpO+m6Wj5tsigD6MGL6DIqsCzfWstEnzpw4IXv8242ST43uwBLL9CKaoNdhfqgYUh7
    kZYJ1zFVQmyavcAor5QUxnvInVuqUIshanAeJwiHLf20awXfy9tAVr+4w/8fa1bXanSp1A
    fB4Y9pi1Q371xMRUqAmpzSD8K0Zl9bcddbMZ0IePsmqA6kCZNnFJna2UU2hvzyMJvyIeQD
    Eyj94yuwRczu7VVC4iKH7HBVFl3BAxhyhvHIxNzcVW8sAwjWbe5Sp3NB+nPTd3N5diPfU0
    Nd1w8rci+0zD5r/u/RXGimCCyso8Tp75HYy8EsT8iesWyjeTEBNXzgMLi6Jw
X-ME-Proxy: <xmx:Ba0Fa4EaJ6wHylGugGzwD1JbVAOzrHEXQIPGeVcfTTwGHgR6r6qLSw>
    <xmx:Ba0Fa2Mis713kAt-MdWVW2jzJiujCBl1eWjChiXiOfw2GrYoTrXnMA>
    <xmx:Ba0Fa_ummptp4zGB3W792LrdD1Ir78KIXo-wZzgYolanxN8IVV5FxA>
    <xmx:Ba0Fa8Jq5dge73COF_bJq6T5yHnalSAsW1FBHKcRRM-S6ryyGE108w>
    <xmx:Ba0Fa9cZubrLuTmM1Z4rogUjROmlNZKqr2JZ08TtYXyp5qZddJ4ruFoH>
X-Feedback-ID: ifa6e4810:Fastmail
X-Received: by mailuser.phl.internal (Postfix, from userid 501)
	id 8716D780070; Tue, 24 Nov 2026 10:28:05 -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: <20261123155242.49d87894@kernel.org>