Article View: linux.kernel.netdev
Article #21399Re: [PATCH net-next v3 00/10] Deliver TLS session tags to upper-layer consumers (NFSD)
From: Jakub Kicinski
Date: Tue, 24 Nov 2026 00:34
Date: Tue, 24 Nov 2026 00:34
28 lines
9720 bytes
9720 bytes
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. The components resolve all decisions in user space, and give the kernel full list of policy ID -> allowed resources. Could be purely a subjective preference, I won't insist. Tho an ack from someone experienced with building kernel (security?) policies would be awesome. BTW someone marked the patches as changes requested, so repost will be needed.
Technical Details
Message-ID:
<20261123155242.49d87894@kernel.org>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-369871-linux-kernel-netdev=dewy.ruReferences:
<20261113-tls-session-tags-v3-0-91271964cdb0@kernel.org> <20261121161302.69f202c8@kernel.org> <7a0695c2-bf7a-4394-8cfe-a92deeba51e3@app.fastmail.com>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-369871-linux-kernel-netdev=dewy.ru From: kuba@kernel.org (Jakub Kicinski) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v3 00/10] Deliver TLS session tags to upper-layer consumers (NFSD) Date: Mon, 23 Nov 2026 16:34:57 -0800 Organization: Usenet Network Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="4016503"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:Xg3Rn+WSvu9aPxurhZybSntRva8= sha256:vk/nuV5We0SCszqQfUq0/231H5osSm7hdHByaFBVz1Y= sha1:XKsmSwQXwsxDq3zjz08BxPaqpxg= sha256:fYETSnYY5fZtYXMbi20EUITqyecTuAs5lZKKofC/mUc= 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 B78A0125DC9; Tue, 24 Nov 2026 03:35:21 +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 k9bB4gIQw5nB; Tue, 24 Nov 2026 03:35:14 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-369871-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id E1924125DC8; Tue, 24 Nov 2026 03:35:03 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 34EC42F86D; Tue, 24 Nov 2026 00:35:01 +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=1795480500; b=E3l0MLYca+fcJljZa7N1h6yRLr0503p42tOTVq2CAAB5T7P7h+VpxCMlUKttJjKZW2sh bKCBZpR7IoY2rXvo1AbBCtiVKN+FfJMqQfid6dlWtdpJFHqaGaJxUfoP/ZxE144q5a5nB zw6J4ejMa9enOB6PFxCE6cdgWmy8UVoc8L74r4nCDX6E+BXHsASj7fPA2Gmh4wV8dmx68 GVTx+epfS9xFFyfuQTWK2F+/btPJTKHU627qnK5X+xQbch/en/ngxscdRpnJYnMxPWNDR 4cYIkuqMVJ2lAbk8OAQqwga9EZS20faDXaOPys/hrk8uI4uO3dAKclcfIxZKqT7/X4g== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795480500; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:In-Reply-To:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=kiBFVYpJZV/z1Y7/aNci/WiL++vzCEQVBpC2tTo5b5c=; b=fgxCkoPwCJpyW7pcci6knO71oKi6MJs84Ha0EPTtDwYVCKZFCKlI7IIqGXt/M5a0H0GN OsZayKktScfMPM5efp+rOA55PxKvL2zfl0zHnx7nFpKdHcZW3DwTek/S1bgZwEcs2EK/S anBRUqw2iQBbs5vzn1idvnDs5KFsS7bq0gaDUDk9iiZV6fVdPE5WkyqcBXnSBRZAYjeX7 8asKlYon1PJ3uaLJHzieAyLIJBvHzb+S1l/zwSXzqeJGEWPdKC5kSs/NNmdL4noo5tSoQ TNvnOsx15YR4gPDdIIjGzzwwbSDJnRVKZUgTweN4vlC7Xed6UisWqwdnOJzhscBWuiw== 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=gdjFd6yl; 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 9E178606A332; Tue, 24 Nov 2026 00:35:00 +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=gdjFd6yl 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=1795480499; b=HpTq6aUj7O+3aKwStYJ3VZIVktK3bx6mDuM87oTCKpe5gKMG+rmy8dnYwyrDq14MGwaK dn590PrFvT3pArMcUo27/obrLORYTTlnnQXNcMQB1+R56Ont24etqypU+4DT0PlK6qKYH yUyOimz90D4moIU6dvOy4XXG6+ZY3WLlLgZR5dDNNZVqYzfecb1uAl1nFaJ7wiDvqEHpS ZKt1Dub6uYn9GfFqLxzi3Xdq6sgxsvwtvLLxlyCSOItG8mERBoPo7ORewhzcFy7UKYKhD WXqRjIqFr1xS91fPffEudpUQNGwTONEo8xZKcW8r60kb84JuqMkpDlUFZC8vWEJQlaQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795480499; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=kiBFVYpJZV/z1Y7/aNci/WiL++vzCEQVBpC2tTo5b5c=; b=ZMcbU9mIi57PRz5+yWsxTAzUBHzUyb95ZXXeANnTnhN1UBzpRszaY7U2DIdRutPi812M OLOjGqDrXCwMN6flclHhzIw8HTeZ3vRROt0A2tsJ0wUOGO/z/sHNxixZ5z7hGbRce9df4 r2ytTmVVyU7lc3/hlTVDAB8hCLj2Q1BAUB3o1QMOM3pepsD392PNj9d+Q1g2oqEMMySJI esWBDP5eThI/m1sB0GWbzlCneYKQMzSLBPI/bIerdgVXQarwEGPzGTDoJ4rWhW+/kVQZC AoqWagOHRnzlvn8xObZnDkX6rWZOXv7g57UxVsNqIB/3HTyT+OsBErhDD2VryDutAyA== 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=gdjFd6yl; 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 B6FDD606A31E; Tue, 24 Nov 2026 00:34:59 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91D1E1F000C6; Tue, 24 Nov 2026 00:34:58 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795480499; bh=kiBFVYpJZV/z1Y7/aNci/WiL++vzCEQVBpC2tTo5b5c=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=gdjFd6ylCYe3WifuWcTq7DnflOd7Jwq7O+OcWvLD36AlMDYuySmHI8EySL92MHbCr OsJiA15ujNPK73U0NqMS57S9LcOg5nNHXOHRCe07btshprhyAFRyEuL30JIpau9n1Z Bybni3PAips7Yfb3rWbATw3O+TQZaYapMJEqCrelsj+9wlder87puNluvBRuUYCN/k WwOZUzN/4ZNwmaF7b59AIOXrTMWE5zPmC2pjxMpCPYCux7tHxXiA6eOghcZHVhUVRo EIJmx+vsfGVELo1uYUxB8VBqnPIdyD3r9fVKagby+B/eVwgVjQS3q4sG1gM1pcNKXY KET9Kc+RrEKhw== 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: <7a0695c2-bf7a-4394-8cfe-a92deeba51e3@app.fastmail.com> 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