Article View: linux.kernel.netdev
Article #7823Re: [PATCH 0/8] ns: fixes for the namespace LSM hooks
From: Christian Brauner
Date: Tue, 27 Oct 2026 09:24
Date: Tue, 27 Oct 2026 09:24
56 lines
11255 bytes
11255 bytes
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.
Technical Details
Message-ID:
<20261027-heckklappe-halbmarathon-vorsorgen-849ffdc42aac@brauner>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352324-linux-kernel-netdev=dewy.ruReferences:
<20261026-work-security-namespace_free-v1-0-ffa3ebbf71bd@kernel.org> <CAHC9VhR4rMydWiD-RFv-ABiYSG_txJuyrtdaowEXPY=CHEvFXA@mail.gmail.com>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-352324-linux-kernel-netdev=dewy.ru From: brauner@kernel.org (Christian Brauner) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH 0/8] ns: fixes for the namespace LSM hooks Date: Tue, 27 Oct 2026 10:24:28 +0100 Organization: Usenet Network Message-ID: <20261027-heckklappe-halbmarathon-vorsorgen-849ffdc42aac@brauner> References: <20261026-work-security-namespace_free-v1-0-ffa3ebbf71bd@kernel.org> <CAHC9VhR4rMydWiD-RFv-ABiYSG_txJuyrtdaowEXPY=CHEvFXA@mail.gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1503229"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:0UQqDhrrFVJU9LwDrl6/QQn5jQ4= sha256:WWEtmW9hOMC1/D8R7nOHw6yH9Z2hUykkivJ56kw8RNU= sha1:7Th/t9GKrd40E2T/9DoIKGRgJY4= sha256:B3lrHFLryKI/L+NP1I5XELgT8g9MH0LHDtORa8iIWvQ= 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 0B8D0125BE6; Tue, 27 Oct 2026 12:30:47 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.739 X-Spam-Status: No, score=-3.739 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.339, 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 h7Y0YyiFpxNh; Tue, 27 Oct 2026 12:30:35 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-352324-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 E2BEF125BE0; Tue, 27 Oct 2026 12:30:26 +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 1FFB331564; Tue, 27 Oct 2026 09:25:06 +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=1793093105; b=qzBTxh/QfTzyc/T/lacMd0hoveSKpH0xcHIBDRpoB+B0TJXeaWhlFzCUrrwgC7jGQ0wC MA7pnnRcutZ8XcnXehoqhctCvumOfQJAjyR2iG0d8RnZJoznOBuQ7DaBwv0+bj5QrBrhx IrdpQWM7n2w6Qc66d3k+YakSa3umMP7TVBbmNnkd/4ADnMEm9Qp6adifc7N5RSanxPvVF 9lOESwW40YpWIHMTp3ttCylh8ZFkJFbc74x6+zBa257ubJkoKIlaFovFQV926yy+ISlCx aGSsFYjdmKskESrEnpqYQqiKbKRDQGq3mWiDugEYUIB9ZDq2JKHWqBuklR4cqg2EAaQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793093105; h=X-Original-To:Received:Received:DKIM-Signature:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:X-Mailing-List: List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe: List-Owner:Precedence:MIME-Version:X-Developer-Signature: X-Developer-Key:Content-Transfer-Encoding; bh=jVmoiMOYtuI9ktRo1elrluNIumXG5xfU1JF0RrrL6LA=; b=skAVs63VIfXcOj/qYIHHPyBgYweyMt1dl57b6Bid6VoNDxdDDhtcQeCOrXpy5Hm/aNR8 y0RhSH3HrIleJ/jKvhFv9IzUqxabtBCX7dpmv/qC/+Rq/tyRQxBiUtd7eGpNKEIdOfr3R n7lnIpsBCo5VqEMgtx5XVL9gTSTdc77uww1tgnD0EcQ9okn19HO2TSJFCtSsLe5culOxC 7vXWk1C28U6MfRzEp70d1NyCmibmQVJfLnkAl2KwVPXrz2wIgi/YQlHflIGuT0O1kYM4N Vit5Bf+04yfxsphuLCNCsW4PFSti5bBLBkWYIfZIHWrtC3qYBV4mbMOEkayNky09Fyw== 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=kZoU+cvv; 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 7443D606A326; Tue, 27 Oct 2026 09:25:05 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kZoU+cvv 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=1793093097; b=QTi+4j01dqKFLtadqnSTh4sMgUzeUM9g0EuTm+iDDvxYD0cN/hBZR43VZC7OAMqVHRvM mLeWLSCwmVujp4PY4QvG78eJ771Bs6kKMtpsuYRRSVmunc54fVRuNB0aB+11SoMNk2bOv dlEmmxUkH5xVTIel7B7BsemtmeUt08CvWK17lkPtA2ufOdyXc/AS+O8AAs/TlNas3Pn0u RNhQGLYxr67GUJQLdGF5fqwIwguh8PeoUT5ujbM+WKiBVqnrfDW1bmx0nDHKt/SGHLlRE EOk0v8geRyFz6gfJ2xU3jawz3bB5NIDH86MRxvTbLBKKSCpm5KhmlOW+fdu5yMzW9Qw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793093097; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:X-Developer-Signature: X-Developer-Key:Content-Transfer-Encoding; bh=jVmoiMOYtuI9ktRo1elrluNIumXG5xfU1JF0RrrL6LA=; b=hDVxuDSGz+Bdqa6hMW8Jbm6fJg9P8RC4Rlf8Qm48pwt9cI/YlLF5+aOkwyoP8gWzXVk6 0GQryS+SCcjI4jlWnxKEmTiEL7/GrzZasorTXiJZtNB4IO9PaOt4ZYEtZupshTxKnucys kew2RvUa+1d9+jD+e8gsi5/0iCItO8ox0NjZAWoHP1SENy4A5ynHcJVzSuagEWT/nfLug d6xry8rAc75T2nFufFEVMclBfNa3Ui9aM/Oizc9yRGDMCxGmt8sI3LxbLKw67rtPOdSN2 NIOi7Wj3PiF7EsXEICDRTf3UuUenqJ3E9V3B9uZ+2nIpuXNKvdewYVKLGEp2icjKWFQ== 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=kZoU+cvv; 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 7E5F0606A31D; Tue, 27 Oct 2026 09:24:57 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22A271F01825; Tue, 27 Oct 2026 09:24:53 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793093097; bh=jVmoiMOYtuI9ktRo1elrluNIumXG5xfU1JF0RrrL6LA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=kZoU+cvvg+Uaxt93WSvNa39ekC/nms9Dh3D6qeSoLDOvmquKzCzkQi0CgBe1v2nWL 5GD+Rb35FYjNMAD4RHbnqheUJ/tzr+bf3FW1OgW191FshAlozCsk2UZljjWo1gdKsl cAZhTYeVhsid7Uf/F5pFYqYlemM/IjJ2jbuZynePh4AFeqJCpWG4gZmizxVyPUpjqz qoBtP8hH/kDlIBY1SPPmhVFs7HkxO+Teg4GNIdLYi1jEwYkdg6O3gg3VsZtB5I6aem 0hIQ8Ghi75+hiG6CVVgVJQwDaEfyCGIXY0WcoMBmlKXQxwe4fkSh31fLVxoPFFyZn2 ovNfkW9oEvH5A== X-Cc: Christian Brauner <brauner@kernel.org>, linux-fsdevel@vger.kernel.org, bpf@vger.kernel.org, linux-security-module@vger.kernel.org, Alexei Starovoitov <ast@kernel.org>, Daniel Borkmann <daniel@iogearbox.net>, 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-Mailer: git-send-email 2.53.0 X-In-Reply-To: <CAHC9VhR4rMydWiD-RFv-ABiYSG_txJuyrtdaowEXPY=CHEvFXA@mail.gmail.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 X-Developer-Signature: v=1; a=openpgp-sha256; l=2717; i=brauner@kernel.org; h=from:subject:message-id; bh=a0tQj4zM6yRVUYT5loClZPWWa4Kil1MrBWSlYtSs7uE=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMWQ9yL21Lirg4n7HnDqL3r2nWabsbIwt37H6e+pdlge1G Refhh+80FHKwiDGxSArpsji0G4SLrecp2KzUaYGzBxWJpAhDFycAjCRroOMDAfmsrsIqdlufX3l 5eG9OWfyIqJ7tBoC/z7+vbr3XLt+2jNGhiOZKmWb/bon622Ne6Cksc158o6szgbZNM2Jmzu3r+P y5QEA X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624