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

Jarkko Sakkinen jarkko at kernel.org
Mon Nov 23 00:10:19 UTC 2026


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?

Br, Jarkko



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