From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795898341; b=iTkXqoSiLOo3y7Yx9aflp/HFE6bDxNK540BANuI3Ck9OjGxHISoFMGfeKuXl/BfdXKLl rgVdYIUUeBaDyiucSUyY4KBEIHYKgtHaP6R3DeQrpVK47wTaSzIe+a8+hC9sQp5jh2Pqj MTEFRZY72sWTxq6mb8QvQUfvcrhM1bim+1qET6sNjU7Y07dKYuFu71aVRoFW39G2kkiob JBlEid+J1Vbh1ujt/Ab4QS3bSWg9GauMGYrIvQWvk4WosSU/Wg/VOQkM0GMstv5LneGri qWs1O9xbJdwvASxPKoRMXIyzp49W/VKjl5CqiNBRLLE5RN+vGjI8sJu3deWzbdzkZ1w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795898341; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=GUpnZhSUEaoZZtF21GELcWIJKyXD9PubmbWdvhBhFVs=; b=vNtcv1Vn7VwPzrw21jtMxZbZ0yY2KSTQKzS6fS9DEq5+qBeEfQ75H9K7PfCEM9gkOcUS BHKm0otLhCDumAJxQzxdmMu/bg9KI31K9GjC30dQ54h95xTif74ao+9LBQrhz99UIBaxe Ek1ejK3atF7AIDV7EHZw5ACtSoNMvUePXAzbm+fOUjDu/aIYUJLcgDEa6Aajc9l7nXy9o WbU9Czye54Gyfshqh/9TaCcfIniABdRbCOObdHDNf10nqvnYS6Ni39Z+3LCFp2DT/zSRE 5dYBC4dKPHBTn7k6GDOb6MB+HGMxAmSCELHtygV2wmy4cVdHQ2Og2QQ7XeMbujQG6ng== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=AqE0KswP; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with UTF8SMTPS id A6890606A31C; Sat, 28 Nov 2026 20:39:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=AqE0KswP Received: by smtp.kernel.org (Postfix) with UTF8SMTPSA id 7B9941F000C1; Sat, 28 Nov 2026 20:39:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795898341; bh=GUpnZhSUEaoZZtF21GELcWIJKyXD9PubmbWdvhBhFVs=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=AqE0KswPPPjxNTLA3Xf0ncqxNX42I99y2HzsWS9dmqN8f3E01TwlVpaYLHRRgb/JI mFx1+aEnJrUYDiW2YdRbCruH8cBHCes4U3Cq9gdUq4idVEY9l6TemZr+M6blBugM86 wEBhXt2H6NdQRthvGkEfvH1zwBxhCbWoF5mMyO+cRm0+HYRBMIYr2q4bvZ3kSx9Pwa wI1nJ2ffOxnfYB6Anl2a+0lwOgKFyrhLEaWKeCq/CnYY2VMD5fAmBjZ5D/BQAOFepx j8ayR/peCwFX80sSYRQujuCFsEKUKlqVqPerlNMZgAxUovN6Q45n3pqoD+cRoUV757 XHha9MnA+mnXw== Date: Sat, 28 Nov 2026 22:38:57 +0200 From: Jarkko Sakkinen To: linux-fsdevel@vger.kernel.org Cc: bpf@vger.kernel.org, containers@lists.linux.dev, linux-api@vger.kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, linux-security-module@vger.kernel.org, Aleksa Sarai , Alexander Mikhalitsyn , Alexander Viro , Andy Lutomirski , Arnd Bergmann , Christian Brauner , David Howells , Eric Biggers , Giuseppe Scrivano , Hugh Dickins , Jan Kara , Jeff Layton , Jonathan Corbet , Josef Bacik , Kees Cook , KP Singh , Lennart Poettering , Neal Gompa , Oleg Nesterov , Paul Moore , Pavel Tikhomirov , Serge Hallyn , Shuah Khan , Zygmunt Krynicki Subject: Re: [RFC PATCH v7 00/26] userland: Userland containers Message-ID: References: <20261122193539.3334213-1-jarkko@kernel.org> X-Mailing-List: linux-api@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Sat, Nov 28, 2026 at 09:44:46PM +0200, Jarkko Sakkinen wrote: > 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//{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//{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/ You can clearly build an engineering practice for integration, given that they all follow the same pattern and do not fight with the old world. These features clearly so signs of life so at least some of the feasible qualities should be part of Cells at minimum. That said, these features would WFM as they are. They cover the job. Not perfect but at least with ~2000 LOC there's a target fix instead having targets scattered everywhere in the kernel tree. Br, Jarkko