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=1795923508; b=YB6IyjsaSPHZWYzR4jjEzRZci/EztcdIJnrTYfBqvTnnG+ypx92azlUgr9yUBQKaaW8I B356mv6G/hWm6JCl9U0PUo6GXg67Dz3k+GnK/xguB0qjkfvn5ziQmdqr4GlhUMeulpz+v JRV4OzNr1cMSSp/iobpADVCUUcP4/h3vI7lueY9A6dpdhHEZSGUH/yhEXsM4KmFi906Lk ZADnZbGN+AFS0H2zuhpzwyAupLc/2X0L2KAVm4S1GA7Z8h7sOEBl+G42ojhqbGq+2N9EC vi/etHiFKhr4ar0exDPBcR7wucFIW3tl2TZ4FAl1BamIkPWNHP4uI0w3jWMAaUTzHcA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795923508; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=zsNGD1+N8rKRMiXjPHpc5OAXKVMzhLv7AHYUWBEXymc=; b=UD2+G9axNR2gRRDlVrFjbbW0bRYM36pcktOH0A0nfZ4wUwsUFYzVQAYOX11deWCS/Cfm o4BFe7bCOSf2lzJvsdubNRLBrBqyUzx8Mt584RbJETVTJEbikkIUmqwue8elxxxY4C6ka ogZsoNcmdMflV/XtmFfoyOOgi6agI61n+hTZPgWwV0q90xO1zc3JEb0MaVALuWriNHzU0 Rp1ge8STO66jLb5Jx6lN9SE/SpLIg268RXhv/g2mF4RQE94r31sRjNChbd4Fj3VNd17CR 1ZF3S68cUiEmjliqKMiJjyC6LcVTNK4ORH2hWTYDrQ/9Q3nuoeFM0HCZRDN1AiosKQg== 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=ZeDNjA40; 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 24AB2606A31C; Sun, 29 Nov 2026 03:38:27 +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=ZeDNjA40 Received: by smtp.kernel.org (Postfix) with UTF8SMTPSA id 0AFBB1F00897; Sun, 29 Nov 2026 03:38:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795923507; bh=zsNGD1+N8rKRMiXjPHpc5OAXKVMzhLv7AHYUWBEXymc=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=ZeDNjA40/XSmfaRQ1pD5adwgES5Qd5kp3TE8i9exVFueuzL24sSapJiRU6I4YMhWZ XQBmpNJTucvRboka+1nnzNLHCkfa5gZuCr0hPFoUk1FzAj8qn6o+B05tfvUCWOJXXa KKvnuT9fPu1m9u1vyx1fN7Wvq/ysBiQA0MzE5ioXqWN6GBM5DzS3L2YXLFIg0RhJpL r9WC1OL9dbfEzcugYJoJXCJYSJ/oXuMDMc8EwCt4mfGVS2l7/f+nAWwb01p4C1JvC7 cEyp2KCLv06S8/1WH9a5/aFJqxwaRHISmVYlTvZZKc5jqkf8Nq8ouyWRxLbpEzLGcX n9xNq6r1+1NCw== Date: Sun, 29 Nov 2026 05:38:23 +0200 From: Jarkko Sakkinen To: 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-fsdevel@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 , Georgia Garcia , Giuseppe Scrivano , Hugh Dickins , James Morris , Jan Kara , Jeff Layton , John Johansen , Jonathan Corbet , Josef Bacik , Kees Cook , KP Singh , Lennart Poettering , Matt Bobrowski , =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= , Neal Gompa , Oleg Nesterov , Paul Moore , Pavel Tikhomirov , Serge Hallyn , Shuah Khan , Stephen Smalley , Zygmunt Krynicki Subject: Re: [RFC PATCH v8 00/29] userland: Userland containers Message-ID: References: <20261128235808.2369970-1-jarkko@kernel.org> X-Mailing-List: linux-arch@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 Sun, Nov 29, 2026 at 04:35:03AM +0200, Jarkko Sakkinen wrote: > On Sun, Nov 29, 2026 at 01:57:39AM +0200, Jarkko Sakkinen wrote: > > WIRING > > ====== > > > > Experimental userspace integrations probe userns_set_idmap() and > > userland_open() at runtime and fall back to > > /proc//{setgroups,uid_map,gid_map} and classic namespace cloning on > > older kernels: > > > > 1. SystemD: atomic ID mapping via userns_set_idmap(), systemd-nspawn > > bootstrap via userland_open(), USERLAND_SHARE_NSFD, > > MOVE_MOUNT_T_MNTNS, and clone3(CLONE_INTO_USERLAND), plus live > > systemd-machined bind mounts and udev device hotplug. > > https://github.com/jarkkojs/systemd/commits/userland > > 2. Bubblewrap: opportunistic userns_set_idmap() and direct sandbox mount > > population via userland_open(), FSCONFIG_SET_USERLAND, > > MOVE_MOUNT_T_MNTNS, and clone3(CLONE_INTO_USERLAND) without > > pivot_root(). > > https://github.com/jarkkojs/bubblewrap/commits/userland > > 3. Podman: opportunistic userns_set_idmap() and a built-in "userland" > > runtime (--runtime=userland, also used opportunistically for default > > pod infra containers) backed by userland_open(), MOVE_MOUNT_T_MNTNS, > > CLONE_INTO_USERLAND, waitid(P_USERLAND), and pidfd_send_signal(). > > https://github.com/jarkkojs/podman/commits/userland > > Two important pratical consequences: > > 1. Userland features can be upgraded gradually across OS stack. > 2. Given the self-contained nature of the syscalls, they are relatively > easy to backport e.g., for enterprise kernels. Also, container upgrades work naturally with this scheme as old and new versions can hang to their own userland fd's, and there's proper staging before the live state. This type of extreme fluidity made me like David's approach and makes me like this even more given vast improvement over that already great groundwork. Br, Jarkko