Re: [RFC PATCH v7 00/26] userland: Userland containers

From: Jarkko Sakkinen

Date: Sun Nov 22 2026 - 19:26:19 EST


On Mon, Nov 23, 2026 at 02:22:49AM +0200, Jarkko Sakkinen wrote:
> On Mon, Nov 23, 2026 at 02:13:16AM +0200, Jarkko Sakkinen wrote:
> > On Mon, Nov 23, 2026 at 02:10:23AM +0200, Jarkko Sakkinen wrote:
> > > On Sun, Nov 22, 2026 at 09:35:13PM +0200, Jarkko Sakkinen wrote:
> > > > SYSCALLS
> > > > ========
> > > >
> > > > Two new system calls are proposed:
> > > >
> > > > 1. userland_open(): open an opaque staircase-initialized container
> > > > object (modeled on Intel SGX enclave initialization with separate
> > > > build and live states) with no embryonic state, opting selected
> > > > shared namespaces in via an allow-list instead of unshare semantics.
> > > > 2. userns_set_idmap(): configure all UID, GID, and project ID map
> > > > extents for a container user namespace in a single atomic system
> > > > call.
> > >
> > > Andy, perhaps a bit too far of the box idea but I'll just throw this out.
> > >
> > > An alternative to userland_open() would a file e.g., virtual device
> > > file, and necessary wiring for open().
> > >
> > > Then the added syscall surface would reduce only to userns_set_idmap(),
> > > and it adds more robustness to access control (e.g. who can create
> > > containers).
> > >
> > > What do you think of this?
> >
> > Also, easy way to detect the feature. This does make sense to me.
>
> This as a side-effect would enable LKM compilation, and reorganization
> of the beef of the core feature as a driver. Not sure what would be
> the best location for the driver tho, perhaps just drivers/userland.
>
> I.e., full decoupling from the syscalls.

Right, and LKMs are great for live patching. This has enough quantative
weight.

Br, Jarkko