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=1795919703; b=ou41bUBNiG7T/eUJ6aSkT0Kvn8ClQniKqdXaZ0Pk158QWsnP9fnoYbOa4sf+Flkv+wsK uFpx10xkNMd33FR3MBn3deEedy/YlWbxIESdg/b8SDHHGcT+R03QjV7zmEU5Ln5PPb8MI ZS6PH8bVvlMN0GBxpzpBhfjqoGL1MkJIM1qgF52DDDGaRp9Vao825DZx31F2MLiGSg0in MPhKQYMIshYapyMaCqzR/+qwDeU9FlrnNP8os3GJ3oHdVMA+XlDPQggE9YNo63mSgvHcy 0w/PX7F/Zb5caSqwywVh1LQffTu27B83cj2kRvOm2G32Anr1RwJFg8VgaZ1KsQlh9qg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795919703; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=nDzC8u43tqpcEKQ2Gn6/nrDTslEJEfR3lqWqsn+to38=; b=wFiLJ9/MetXppA78N+Y2eUfjh3VIoJVWUIVCDJj0flgSgn9A1Wm/9s8R4CLWFyN2j2kr UtIL3+1hU1+Uss5R9m+2MhfC43qArwL1IEUtxKw4Oa+Eqd0aujrj9wN/mOEjv5FBznz6G aUUtWu0tXzVLZg70Mx7Pp0/02/cVAbKf59+aiuIOEi1eQK6Ct63A2+6fGiW5myccPym57 XYsyHFOhH8livhlrE4ESdOGpQmdiPh7BcYIH/PvF7LV+LeChMvUnPUmturZGx7XTNe1N6 DZz15SsX5N+yZdAQwyuJaOCiLvli6n2V2TAx/gHyUnACBNW+ExrY4pocN01A2JfbOQA== 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=ej4i4k51; 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 9832F606A31C; Sun, 29 Nov 2026 02:35:03 +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=ej4i4k51 Received: by smtp.kernel.org (Postfix) with UTF8SMTPSA id 6C4FE1F00896; Sun, 29 Nov 2026 02:35:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795919703; bh=nDzC8u43tqpcEKQ2Gn6/nrDTslEJEfR3lqWqsn+to38=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=ej4i4k51Erj9PKlNjywTIJnoAeF2AIiVe2UlAGVz/DqJ72h1KTDk1JheEnZKUmeb/ zCeqx98/8MCyaPbL4Tg30MeazoBQYXOSEGLggRHDb/jdloPxgB7qLTM7UoZfwvSD9I wZi2UzbBqzHdx8ulGkGy8LN5JXJc0rR5F1LsybiWfAb/U28so+T10XSJ4NLfsgo9Zj w5Uc0bQt92sewfcC68B94NG2mX2gz7LTJbenpxo34RL2CU3DThIyL4eDc46Nmiklpb V7U4goAZE1XTDNs/wcl2FDP7xIiYWDQTVK4rjFLMIhzZSJjl5T+G7y5+715HfMs7qd Z12woedM82bww== Date: Sun, 29 Nov 2026 04:34:59 +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: containers@lists.linux.dev 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: <20261128235808.2369970-1-jarkko@kernel.org> 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. Br, Jarkko