From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 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== 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== 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 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) 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 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FF1D1F000D3; Tue, 24 Nov 2026 15:28:06 +0000 (UTC) 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== 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) 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: 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: Feedback-ID: ifa6e4810:Fastmail 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-ThreadId: A8Z6fJDuAPLk Date: Tue, 24 Nov 2026 10:27:45 -0500 From: "Chuck Lever" To: "Jakub Kicinski" Cc: "Donald Hunter" , "David S. Miller" , "Paolo Abeni" , "Simon Horman" , "John Fastabend" , "Sabrina Dubroca" , "Keith Busch" , "Jens Axboe" , "Christoph Hellwig" , "Sagi Grimberg" , "Chaitanya Kulkarni" , "Jeff Layton" , NeilBrown , "Olga Kornievskaia" , "Dai Ngo" , "Tom Talpey" , "Eric Dumazet" , kernel-tls-handshake@lists.linux.dev, netdev@vger.kernel.org, linux-nvme@lists.infradead.org, linux-nfs@vger.kernel.org, "Hannes Reinecke" Message-Id: In-Reply-To: <20261123155242.49d87894@kernel.org> 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> Subject: Re: [PATCH net-next v3 00/10] Deliver TLS session tags to upper-layer consumers (NFSD) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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). =20 >>=20 >> How is a tag much different than a policy ID? >>=20 >> It wouldn=E2=80=99t be impossible to impose another layer here that m= akes >> a specific set of tags into a single policy, but I=E2=80=99m not seei= ng >> 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.=20 The exportfs command will get an "allow-tags=3D" 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. --=20 Chuck Lever