Re: [RFC PATCH v2 00/13] Namespace for namespace roots
From: Jarkko Sakkinen
Date: Wed Nov 18 2026 - 12:30:47 EST
On Wed, Nov 18, 2026 at 07:08:36PM +0200, Jarkko Sakkinen wrote:
> On Wed, Nov 18, 2026 at 07:04:21PM +0200, Jarkko Sakkinen wrote:
> > On Wed, Nov 18, 2026 at 08:59:39AM -0800, Andy Lutomirski wrote:
> > > On Tue, Nov 17, 2026 at 3:14 PM Jarkko Sakkinen <jarkko@xxxxxxxxxx> wrote:
> > > Would it make sense to come up with a patchset that does *just* the
> > > configure-a-namespace-by-fd part? It seems to me that this should be
> > > an easier thing to agree on, and it's a big part of the complexity of
> > > all of this, and it solves a real problem even without
> > > cells/rootnses/jails/whatever.
> >
> > Is it more accurately scope the part that is "just the fd-part" and
> > what you consider as "extra cruft"?
> >
> > I.e., where do you draw the border?
>
> I'm asking this because I had similar thoughts when I started this back
> in 2025. David had some good ideas but it did more than having a fd
> that does not go live before everything is set up properly.
>
> Then I thought that, I guess people who proactively on the topic do
> something more lean and compact, and never sent roonts patches.
> I'm not seeing anything more lean and compact.
What if "A full or partial set of detached namespaces" would be changed
into "full set of detached namespaces"?
That would simplify the patch set a lot.
By pratical means we would take this:
enum rootns_flags {
ROOTNS_CGROUP = 0x00000001,
ROOTNS_UTS = 0x00000002,
ROOTNS_IPC = 0x00000004,
ROOTNS_USER = 0x00000008,
ROOTNS_NET = 0x00000010,
ROOTNS_KILL_ON_CLOSE = 0x00000100,
ROOTNS_CLOSE_ON_EXEC = 0x00000200,
ROOTNS_ALL_NAMESPACES = 0x0000001f,
ROOTNS_ALL_FLAGS = 0x0000031f,
};
And outcome would be:
enum rootns_flags {
ROOTNS_KILL_ON_CLOSE = 0x00000001,
ROOTNS_CLOSE_ON_EXEC = 0x00000002,
ROOTNS_ALL_FLAGS = 0x00000003,
};
If I was using this I would at any time just take em all. "Partial" is
just something that I've been just carrying since probably David's
original patches i.e., it simply has not been considered that much.
Br, Jarkko