Re: [LSF/MM/BPF TOPIC] Namespace-aware upcalls from kernel filesystems
David Leadbeater <[email protected]>
| Newsgroups | org.kernel.vger.keyrings,org.kernel.vger.linux-cifs,org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-nfs |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Feb 14, 2026 at 03:36:22PM +0530, Shyam Prasad N wrote: > I tried to prototype a namespace aware upcall mechanism for kernel keys here: > https://www.spinics.net/lists/keyrings/msg17581.html > But it has not been successful so far. I'm seeking reviews on this > approach from security point of view. I have more context from the containers side, but to me this doesn't appear safe. Entering the right namespaces isn't enough to safely run code within a container. The container runtime may have set up seccomp or other limits which this upcall won't respect. I would like to see a solution to this though, we currently have custom callback code to make this work. I'm not familiar enough with the interfaces but an approach where something registers also seems desirable because it is able to preserve backwards compatibility, which changing the namespace the upcall runs in doesn't. David