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=1796496806; b=Cz9H6PdNNx/fbKLFLYf18cI8NYZysvE4ECrtp4wtB6g3LvCTBtAEzhsnYUBnKiTjGbLn ZPzK33BEZ7zyfekpWW/luyD3vGoC39bXkgArgpyt7NW+ov+zcuYxZdroCswmqSGV4RBaD 4CaQZj8RTug+549k0q6CArXaT8JufAqIdwM1yJbA+DIwK/+YNHe2QSSpUlYSQGc0rUVHU MavqMRA2glG2FumdvNNmPSfu5WnnJQYxRMw0RF/cFOZsgnqKF2aPdxxDTdinijP1JbBzx 5yYu2z2R6eraXFe95GBLNpY6+rr+v8aMVUpEFVeALsmM3bAIRwg3R91+Ru27st2jgRw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796496806; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=V75T2YvwPend3VFBLpgKHmF0yhx9Z0mD8l8hMVjNjdw=; b=42oyDFEaiNf49ha3HdtHOpxxikhvPDNH2NK0aGVbOvPQ5GLfs0jrnPBXNmRZmE8nFvrA WdMlhYY8uWxedfW2MPkFdpq/icSeuu+YZON8x/8+TbyEPKmRfXqudV8o/1FeCWf6VJHO7 jtxxpJimmab+HU5paQ+Xt4RTExTV9GIs7xfFvo9zMGGz8KMmZqKZqO77pENNzSuZInpal BLgNfW+1qeOV7P9aiixHKm5KgSaw6RyY3+fJcI6KkcSoonZPaa5qqeGILvJfcO25JsBb9 rtFxyQdYL/E4DbY6UdMtO+T+NKmb9jrPWPmUhIALb6L2izjcR87DXFRML+EKEzNfmRw== 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=IP6irW8W; 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 5623C606A31F; Sat, 5 Dec 2026 18:53:26 +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=IP6irW8W Received: by smtp.kernel.org (Postfix) with UTF8SMTPSA id 414A21F00936; Sat, 5 Dec 2026 18:53:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796496805; bh=V75T2YvwPend3VFBLpgKHmF0yhx9Z0mD8l8hMVjNjdw=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=IP6irW8Wbp233dgAiK1EYFxVo1OCCSYwBjmzzNjloO420ad7RwG4mgJXIkunFT7ly FAdmgtJchm1Tt94NrO8KHLNPsOEF74jGeJg7E0gi7sHi7MfpjXM6pytGUYEvDb8TLM pVZcW1P+aJtZHQTQgEWVz6XjdRq4AsuDff/CXVTR66yNAVAJXrJmSZbK1yNKczRmW4 gry8tDOhFI8X4LKMdBlvKe6yfYqKdYIZ86huLmrfWaJRSdmnktp1S/xVVYqMOJbvlu mPBoCqJ9L2QVOvznHvjMJuxDcVJPZ7XEKN80X8NLkdt1wyjYYAgCQF7H12GHbV66db VHZMj1b2UVm0A== Date: Sat, 5 Dec 2026 20:53:22 +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-doc@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, Dec 05, 2026 at 06:56:49PM +0200, Jarkko Sakkinen wrote: > 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. After: 85 files changed, 2446 insertions(+), 267 deletions(-) That's ~100 insertions of complexity reduction. I'll look the remaining LSM surface and try to see if they can be tackled; or do they stick. Less is definitely more here. Br, Jarkko