[RFC PATCH v2 00/13] Namespace for namespace roots

Jarkko Sakkinen jarkko at kernel.org
Thu Nov 19 17:51:52 UTC 2026


On Thu, Nov 19, 2026 at 07:43:11PM +0200, Jarkko Sakkinen wrote:
> On Thu, Nov 19, 2026 at 05:30:55PM +0000, Josef Bacik wrote:
> > On Wed, Nov 18, 2026 at 9:46 AM Andy Lutomirski <luto at amacapital.net> wrote:
> > > cells: The dance where I create an anonymous mountns, mount stuff into
> > > it, and then attach it to the cell is cute.  But I think the userns
> > > interaction is wrong: you are making me assemble all the mounts in
> > > *my* userns and then clone the entire tree into a fresh, non-anonymous
> > > mountns bound to the current userns.  And that clone operation is not
> > > free and serves no actual practical purpose.
> > 
> > The copy buys us nothing, agreed.  That's just what the mount API gives
> > me to work with today, it's not something cells wants.  If I could make
> > an empty mount namespace and fill it by fd I'd use that, the "root" slot
> > takes a mount namespace fd already.  Extending the API for that makes
> > sense to me on its own.
> > 
> > The mount namespace staying with the builder's userns is on purpose
> > though, that's what keeps the cell from mounting anything no matter what
> > capabilities it was given.  The builder sets the tree up and hands it
> > over, so the cell only ever has what it was given, and the mount code
> > isn't something it can attack from the inside.
> > 
> > > cells: I find it *incredibly annoying* that one generally cannot put
> > > new mounts into an existing container using most existing container
> > > managers.  I hit this on a surprisingly regular basis.  You seem to be
> > > baking this into the whole cells design.  Why?
> > 
> > By design.  Allowing changes to a running container is what causes the
> > problems.  If you need another mount, tear it down and build it again.
> > 
> > > both of you: Can we please make it possible to do the parts of this
> > > that oughtn't require privilege without privilege?
> > 
> > Agreed, we need to come up with a design for this.
> 
> To clear things up I'm not pushing "my stuff" over "your stuff", and
> I get if that is the impression I might have given :-) Apologies for
> that.
> 
> I think it is better to look where things balance. It can even lead
> to something else than anyone considered (something better). I'm
> all for right solution :-) Distruption is painful but useful
> 
> E.g., MOVE_MOUNT_T_MNTS is completely independent patch regardless
> of patch set for what it is worth [1].

E.g., if it'd turned out that some parts of this work is useful and
derivable to Cells, I'm good.

Just want to make clear where I stand on this topic. I know how
opionated area of kernel namespaces are, so it was not exactly an
eager action from my side.

Br, Jarkko

Br, Jarkko



More information about the Linux-security-module-archive mailing list