[PATCH 0/8] ns: fixes for the namespace LSM hooks
Daniel Borkmann
daniel at iogearbox.net
Tue Oct 27 14:36:44 UTC 2026
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 at iogearbox.net>
Tested-by: Daniel Borkmann <daniel at iogearbox.net>
More information about the Linux-security-module-archive
mailing list