Re: [RFC PATCH v7 00/26] userland: Userland containers
From: Jarkko Sakkinen
Date: Sat Nov 28 2026 - 14:44:56 EST
On Sat, Nov 28, 2026 at 07:55:08PM +0200, Jarkko Sakkinen wrote:
> On Wed, Nov 25, 2026 at 12:03:08AM +0200, Jarkko Sakkinen wrote:
> > 1. Rebased RFC v7 patches with refined LSM support and fixes to the
> > known issues as of today:
> > https://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git/log/?h=userland
> > 2. SystemD patches:
> > https://github.com/jarkkojs/systemd/commits/userland/
>
> Bubblewrap: https://github.com/jarkkojs/bubblewrap/commits/userland
>
> README.md update explains all this:
>
> When supported by the running kernel, bubblewrap opportunistically uses
> userns_set_idmap() to configure user namespace ID mappings and
> userland_open() with CLONE_INTO_USERLAND to populate the sandbox mount
> namespace directly without pivot_root(), falling back to
> /proc/<pid>/{uid_map,setgroups,gid_map} and classic namespace cloning
> otherwise.
>
> Podman ought to be similar wiring as SystemD so that does not have as
> much demonstrative value (but would be equally trivial to accomplish).
README.md update for Podman:
On Linux kernels supporting `userns_set_idmap(2)` and
`userland_open(2)`, Podman opportunistically configures user namespace
ID mappings via `userns_set_idmap(2)` (falling back to
`/proc/<pid>/{setgroups,uid_map,gid_map}` otherwise) and provides a
built-in `userland` runtime (`--runtime=userland`, also used
opportunistically for default pod infra containers with private user
namespaces) that populates detached mount namespaces and spawns
container processes directly via `CLONE_INTO_USERLAND` without an
embryonic init process.
https://github.com/jarkkojs/podman/commits/userland/
Br, Jarkko
Br, Jarkko