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=1796489809; b=4rfZpbuLQpuROY4CC/Q5Ru7dBhSA77GqmIbjgJlRsve1qgZhXlzUPnp/K3EKLkuBGriU Gmh9QqwkJZA73TnwnhviaDL8iu0qFk2R3elrEJy5I44zTb3NOhVEfIM6FKd43VMbe97Ix 2uF3b0zfK9IkPLzulPMyu5LIO76ER00JeGuJ9TNAPC1SnGgsCRzeEcJSrVuznTH3Tnqis Vz8ncpfDUZbHbjc5J7xJx2qgPjlQ33aHeSCsARYmKOGSH8p5FwAu3u/p2q1OltQgz1+34 Ik+jzKj9mInNUAkKbCKXFSUQA6mfXjDKMTF5x4WLbuKXVoB5RyuO3Lwh0BLZvMZizXw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796489809; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=pM7fAyd08hLjRtvfX1cxPpWOpKXkRoi3X998fxR+7Ho=; b=OLLbktthAJII1Ok9xFIu/FN6NnF5lWOLTsO/U7z8w7WWF+ml7FKzJkXVhjKFjWfO3oPG RDn9IWX5qCM11Onv4+3Zs6+6pTvB2QJ6TuGdM9YX8pjMNlGYfNIylv4yD+q+82x8rLleQ 4B+8uJho923YzWq+FedV4fb/Cbl0GRb2KKDHEQHG0hwDGhw7/hJqe1nG7TxIylEPmen5C QhpKxggx+5UN3gfG0DFyJRK/83+uCAZJj9YBkif8+b0wnHGA6p/0frWnjK+mIIgEIl8oq /wjGU/C8yGcRfI6MaN0205p2eplBh/9wRKVvjyO/3ClTKndLxKplEuzo+uKstSpbDhg== 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=NE4Dqy76; 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 C8ED2606A31F; Sat, 5 Dec 2026 16:56:49 +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=NE4Dqy76 Received: by smtp.kernel.org (Postfix) with UTF8SMTPSA id 7D4281F0092B; Sat, 5 Dec 2026 16:56:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796489809; bh=pM7fAyd08hLjRtvfX1cxPpWOpKXkRoi3X998fxR+7Ho=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=NE4Dqy76rZKIkHSileniyQfZEf5BlB+wWvH2M5vcGZRHWDXD/LXa5rw99bNAKdKyd VixPYbZeqv66uxWyNT48kWukS2RSQdhGxWlxp6cMQMtYT5j+llX53lbqjL/T6whc1k 9LrXQw10zSiY54SNRXbApTAxuBdyZX6nkQ54Jj4SZwjUaHQlMEbWOk28oDtW03daWJ TSLCSjKZMol4Iy85gEZuvPsVPkX1vyeXhkqEiRjqYikJv07KPEY/1bXg4CzJHT1Vh6 Qj5wohjfGK3b8m9r+/lFtUo/WG3VZWu/u52JYDZpjQWJjTtiVeSdhgfs019/pFf2bq szU4JxGhhVjNw== Date: Sat, 5 Dec 2026 18:56:45 +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-integrity@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 , Alexei Starovoitov , Andrew Morton , Andrii Nakryiko , Andy Lutomirski , Arnd Bergmann , Baolin Wang , Ben Segall , Christian Brauner , Daniel Borkmann , David Hildenbrand , David Howells , David Woodhouse , Davidlohr Bueso , Dietmar Eggemann , Eduard Zingerman , Emil Tsalapatis , Eric Biggers , Georgia Garcia , Giuseppe Scrivano , =?iso-8859-1?Q?G=FCnther?= Noack , Hugh Dickins , Ihor Solodrai , Ingo Molnar , James Morris , Jan Kara , Jason Gunthorpe , Jeff Layton , Jiri Olsa , John Johansen , Jonathan Corbet , Josef Bacik , Juri Lelli , Kees Cook , K Prateek Nayak , KP Singh , Kumar Kartikeya Dwivedi , Lennart Poettering , "Liam R. Howlett" , Manfred Spraul , Martin KaFai Lau , Matt Bobrowski , Mel Gorman , Michal Hocko , =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= , Mike Rapoport , Neal Gompa , Oleg Nesterov , Paul Moore , Pavel Tikhomirov , Peter Zijlstra , Randy Dunlap , "Serge E. Hallyn" , Serge Hallyn , Shuah Khan , Song Liu , Stephen Smalley , Steven Rostedt , Valentin Schneider , Vincent Guittot , Yonghong Song , Zygmunt Krynicki Subject: Re: [RFC PATCH v10 00/28] runfd: Staged namespace execution Message-ID: References: <20261205032633.1702772-1-jarkko@kernel.org> X-Mailing-List: linux-integrity@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: <20261205032633.1702772-1-jarkko@kernel.org> On Sat, Dec 05, 2026 at 05:26:05AM +0200, Jarkko Sakkinen wrote: > v10: > - Reduced to *SINGLE* new syscall. > - Rename nsexec_open() to runfd() and update the related interface names. > - Replace userns_set_idmap() with the NS_SET_IDMAP ioctl on the user > namespace descriptor. > - Drop the in-tree nsexec selftests and package the standalone ucells > runner in the Buildroot runfd image. > - Include the runfd kernel-doc in the userspace API manual and register > the ioctl range in a separate patch. LSM pollution is the next potential target of redundancy now that syscall pollution has been fully addressed. At least these are low-hanging fruit: 1. security_runfd_free() is redundant against namespace_free(). 2. security_runfd_share() should be replaced a shared hook with Landlock, which already contains an equal hook. I'll address this and then I don't know i.e., need to see first how LSM surface appears after these updates. My goal is to squeeze this patch set around 2000 LOC but not sure if that is possible :-) A realistic bet would be something like 2300 LOC of added complexity but let's see how this goes. Br, Jarkko