🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #7949

Re: [PATCH 0/8] ns: fixes for the namespace LSM hooks

#7949
From: Daniel Borkmann
Date: Tue, 27 Oct 2026 14:36
67 lines
12570 bytes
On 10/27/26 10:24 AM, Christian Brauner wrote:
> On Mon, Oct 26, 2026 at 04:31:25PM -0400, Paul Moore wrote:
>>  From what I'm reading the LSM framework patches don't meet the typical
>> LSM criteria for stable/RC fixes: there is no serious bug/panic, and
>> there is no functional regression from a previous release.
>> This looks like one of those unfortunate circumstances where a new use
>> case wasn't tested thoroughly enough before the merge window, so it
>> can wait for the next one.
> 
> My original patchset had a selftest that excercised the BPF LSM usability
> extensively. The hooks are new this cycle and broken for the main use-case I
> wrote the patchset for.
> 
> If we don't fix them now they need to be backported next cycle which I'm sure
> the stable developers will enjoy.
> 
> Curiously, your pull request told Linus "I expect that BPF LSM developers will
> also be making use of the namespace hooks, if they haven't already". So it
> seems very strange to claim this as a new use-case.
> 
>>From my perspective the timeline looks like this - I'm sure yours differs:
> 
>    I wrote an implementation for the BPF LSM to use a set of new hooks in a
>    subsystem I maintain months ago.
> 
>    You rejected the hooks because BPF LSM programs cannot serve as justification
>    to introduce new hooks. Only in-tree LSM (selinux, apparmor, landlock, etc) can.
> 
>    I cannot fulfill this requirement because I neither have the expertise nor
>    the use-case for any in-tree LSMs.
> 
>    Landlock wants to make use of this by pure chance. So the maintainer offers
>    to take over the patchset. He does.
> 
> End result after more than two kernel releases: The patchset that ends up
> merged into upstream doesn't work with the original motivating use-case because
> all the BPF LSM bits got dropped. So far, no problem. That may happen as long
> as we can the fix it rapidly.
> 
> Then I take the time to send this series of fixes to actually restore the
> original use-case so we don't release a kernel with a new api that doesn't work
> for the main use-case I developed this for.
> 
> Once again, I get told no. This time because the functionality isn't broken the
> right way to justify a merge-window follow-up. Instead, we'll release
> half-working functionality.
> 
> I'm really on the fringes of this endless debacle but this seems to be another
> iteration of "BPF people don't get along with LSM people" therefore they make
> each other's lifes and that of innocent bystanders that just want to get work
> done difficult.
> 
> I really don't understand why it's preferable to release a kernel where the
> original use-case that I was forced to explicitly abandon doesn't work and
> there's no reliable or cost-efficient way for userspace to detect whether the
> hook works correctly.

:(

+1, strong preference to ship the 8 patches as PR given merge win is open as well
right now and to avoid painful probing complexity in user space. Patches look
reasonable to me, and I gave them a spin locally as well as we need these too.
Feel free to also add for bpf side:

Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Daniel Borkmann <daniel@iogearbox.net>
Technical Details
Message-ID: <96db3a96-0fa2-45e1-a981-ed377e5b21b1@iogearbox.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352491-linux-kernel-netdev=dewy.ru
References: <20261026-work-security-namespace_free-v1-0-ffa3ebbf71bd@kernel.org> <CAHC9VhR4rMydWiD-RFv-ABiYSG_txJuyrtdaowEXPY=CHEvFXA@mail.gmail.com> <20261027-heckklappe-halbmarathon-vorsorgen-849ffdc42aac@brauner>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352491-linux-kernel-netdev=dewy.ru
From: daniel@iogearbox.net (Daniel Borkmann)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH 0/8] ns: fixes for the namespace LSM hooks
Date: Tue, 27 Oct 2026 15:36:44 +0100
Organization: Usenet Network
Message-ID: <96db3a96-0fa2-45e1-a981-ed377e5b21b1@iogearbox.net>
References: <20261026-work-security-namespace_free-v1-0-ffa3ebbf71bd@kernel.org>
 <CAHC9VhR4rMydWiD-RFv-ABiYSG_txJuyrtdaowEXPY=CHEvFXA@mail.gmail.com>
 <20261027-heckklappe-halbmarathon-vorsorgen-849ffdc42aac@brauner>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1561143"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:2vUpktrIKU04Tf2idM48xjqgxhg= sha256:Xa4BVDzF5mkKj1YSls1YQKwjrSWvhnPQkhoSF/ngBGY=
	sha1:7yn4MyFY0/puRZvjvJ+ldWMWH3w= sha256:xOjteqB/1x0khgK30BLpQnRtak94rlrGFqdweZbwdhc=
Content-Language: en-US
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 51BAC125C06; Tue, 27 Oct 2026 17:42:09 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=iogearbox.net
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 IrHIasW7Pq4i;
	Tue, 27 Oct 2026 17:42:06 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-352491-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=reject dis=none) header.from=iogearbox.net
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 5778B125C05; Tue, 27 Oct 2026 17:41:58 +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 B524330E02; Tue, 27 Oct 2026 14:37:02 +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=1793111822;
	b=YjMAgaKmTQAdgoyr4XwdbQonVvKAH1SfusnJEJn2hE914giq1LtR03E/e6cEWeYvJeh5
	 mf9CIFU2sWKpelOf+7dorsoSBYRGpW/PKWcURwtSCxIif1CYU2RF3z6EXdQsgX6zl7Ezu
	 aIL12O3XxAreTmyqfDDWB9Dn7DwFrZ7/QQQYzSpwaeiMNb0tPWfVc5a0tFrThDAF5kPay
	 yYxjzxEPulFebUYgdejFTdOYAvLHeHIif+8RIcwwIwXQ1DV8qHz0SsT7lu8+eQAVTjJDh
	 7t5mSTD+Gr13VEdb1WMuDKYKbNO897Y+v1dzwBnEa2iKqCKw2nDF3/szlTdI3fDIv5Q==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793111822;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Received:
	 Message-ID:Date:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To:
	 Content-Type:Content-Transfer-Encoding:X-Virus-Scanned;
	bh=DDw7CAOzeMjZ87nEGcA3ulwTRmsKh58E4v2DnTXYC5A=;
	b=t5YpnbBEVeBtuCerxCOqNDRR4Qa59jBcaBxpoz7+i+hrqTJvKWHUhRPhw0pv6x+FXMzp
	 o+xWK2hDH1O3M/c56wjyKdbA2QJhEIrZanPCJQwyPEGKRiceFJX8eyDey4QdpjtUx0puv
	 Xg+M49+ZyxjrLikd2A3CDRnBvCYte5K8py36PRl2/0YM/32Ks/4zu0O5rRtzd+XWHbmqK
	 6MaAfB9zkXwsle8mPsUlyyt4meh0smRiTILsytBG700aAX0fZrc5/4cnVzSZpTPJuHv4P
	 bn1yilaKr3raGygEgc3w5HDUT/Kt679cEUi4fPTwnknzIxpfBb+Qr24TlIRpkj8P8ow==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=iogearbox.net header.i=@iogearbox.net header.a=rsa-sha256 header.s=default2302 header.b=J5xjzEEG;
	dmarc=pass header.from=iogearbox.net;
	spf=pass smtp.mailfrom=iogearbox.net;
	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 8C0F5606A31E;
	Tue, 27 Oct 2026 14:37:02 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=iogearbox.net header.i=@iogearbox.net header.a=rsa-sha256 header.s=default2302 header.b=J5xjzEEG
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=213.133.104.62
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793111810;
	b=CSYmISTYQ3p0Ax+9NOrUKLfluQRFlGDzvNaMtkGr8WU01vsK5H4X/Y0vwBde0ei9gLqp
	 OWVoGmCE3eXsJmpZ/dVf6iWoTBqLYK792ffQDqYJUia98BshM42swfKsSmCKqtlCOyJAb
	 BioLo03asGdK1mJzi5ldIpfpsPUuc4Q1nECWS5q9lyRk5IFTrxZT27MiP1duTHRTDaAE/
	 Vh7GmpEHYNcVQ7FFlqpsBvOKqKDBkKgAt8/KYTZbF/ntI/xYfFPL4868xiEVQtxKTJqp1
	 5Bkw/E/Fmq4RGIcjIMwGyt3SyrVYxJrObFEpKEsLymL5xGbtTY+emrA3yz8gEbcMxEw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793111810;
	h=DMARC-Filter:DKIM-Signature:Received:Received:Message-ID:Date:
	 MIME-Version:User-Agent:Subject:To:Cc:References:Content-Language:
	 From:In-Reply-To:Content-Type:Content-Transfer-Encoding:
	 X-Virus-Scanned;
	bh=DDw7CAOzeMjZ87nEGcA3ulwTRmsKh58E4v2DnTXYC5A=;
	b=D3nV4nMwjhQ+mvTR8bA644parjsB/5Z1+Zomay/1uA4dhisw5nnY9i/4+JRbW5O6pl3n
	 tYJJ10+pyau95dQjaF5/2tyfrkcm+1pNhth/0qIo7tWZ+gmWct+wEFZ6/UbzuvWDFQAfa
	 1dmwJ3hHvQR9TQyQWolLxLIxr8W6P/Dojyr+emOmSHhoYzdf8CmqWJuYEOg20dGE7PAET
	 kicC9AzU8CjxiKVOEas0rJMuByQHcI+ggfVsQSEVwXZC7GdifHZ612PGpKvIqiwvtfKGX
	 CaSygyvTWL+LxRYGppkU5wQ9z84zDXUT6GZMe3yRMkcuwktm8C8K7wZoq3McYRiHHCQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=iogearbox.net;
	spf=pass smtp.mailfrom=iogearbox.net;
	dkim=pass header.d=iogearbox.net header.i=@iogearbox.net header.a=rsa-sha256 header.s=default2302 header.b=J5xjzEEG;
	arc=none smtp.remote-ip=213.133.104.62
X-Received: from www62.your-server.de (www62.your-server.de [213.133.104.62])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id CAFB5606A322;
	Tue, 27 Oct 2026 14:36:48 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CAFB5606A322
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=iogearbox.net
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iogearbox.net
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=iogearbox.net; s=default2302; h=Content-Transfer-Encoding:Content-Type:
	In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender
	:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:
	Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID;
	bh=DDw7CAOzeMjZ87nEGcA3ulwTRmsKh58E4v2DnTXYC5A=; b=J5xjzEEGoiDDRIjOhbFvPXOve4
	OnXjrVTV7vyOkmrrB4N6aA8XD50a63Ushxk+3Be3pv9fkwDlpi7H+jAiasxMDfRcmGrUUHqlJl23G
	uQHbMDYGPG1LOrcUeVBauXpNQLXqzZ9f7zj931x6zOfySUFZ5NCrxHqmMM0tZ9+Kyr0NtTz1pCWMT
	ZM2B9/7qXSL6emdlc4Bv4s5EphfIebkCuwukdNb9U5REr4Zr7UCAN6D3grO6xNhsfwo0ML83i1s5r
	57XNKpSB6wsndrmbJoHr/QhilfWFhdVUOXzi1/jbBbyyqjxvQv8k46mpxhEybCaygasr4kQOwQOML
	CSvCIOoA==;
X-Received: from sslproxy08.your-server.de ([78.47.166.52])
	by www62.your-server.de with esmtpsa  (TLS1.3) tls TLS_AES_256_GCM_SHA384
	(Exim 4.96.2)
	(envelope-from <daniel@iogearbox.net>)
	id 1xLiIA-00016k-0r;
	Tue, 27 Oct 2026 15:36:46 +0100
X-Received: from localhost ([127.0.0.1])
	by sslproxy08.your-server.de with esmtpsa  (TLS1.3) tls TLS_AES_256_GCM_SHA384
	(Exim 4.96)
	(envelope-from <daniel@iogearbox.net>)
	id 1xLiI9-000Omo-0U;
	Tue, 27 Oct 2026 15:36:45 +0100
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-User-Agent: Mozilla Thunderbird
X-Cc: linux-fsdevel@vger.kernel.org, bpf@vger.kernel.org,
 linux-security-module@vger.kernel.org, Alexei Starovoitov <ast@kernel.org>,
 Mickaël Salaün <mic@digikod.net>,
 Günther Noack <gnoack@google.com>,
 KP Singh <kpsingh@kernel.org>, Matt Bobrowski <matt@bobrowski.net>,
 netdev@vger.kernel.org, stable@kernel.org
X-In-Reply-To: <20261027-heckklappe-halbmarathon-vorsorgen-849ffdc42aac@brauner>
X-Virus-Scanned: Clear (ClamAV 1.4.6/28166/Tue Oct 27 07:24:12 2026)