Re: [RFC PATCH v7 00/26] userland: Userland containers
From: Jarkko Sakkinen
Date: Sun Nov 22 2026 - 19:13:23 EST
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.
Br, Jarkko