🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #19190

Re: [PATCH 0/8] userns: per-namespace capability bounding set and opt-in netns loopback

#19190
From: Christian Brauner
Date: Thu, 19 Nov 2026 14:08
27 lines
10054 bytes
On Thu, Nov 19, 2026 at 10:47:13AM +0000, Hallgrimur H. Gunnarsson wrote:
> On Wed, Nov 18, 2026 at 03:43:03PM +0100, Mickaël Salaün wrote:
> > Hallgrimur, could you please explain why your use case would not work
> > with Landlock?  The capability split or new clone flags would be
> > complementary of course.
> 
> Apologies for the late reply.
> 
> Landlock's capability restrictions work well for self-sandboxing
> applications and launchers. The main gap for our use case is setting a
> host-wide default for unprivileged user namespaces while still permitting
> exceptions. Because Landlock restricts all capability use (not just
> capabilities acquired via user namespaces) and its domains are strictly
> irrevocable, PID 1 cannot apply a default policy at boot without
> locking out privileged services, file-capability helpers, and authorized
> workloads. Using Landlock here would require explicit opt-in enforcement
> at every unprivileged transition boundary (SSH, container/job launchers,
> etc.), where missing any entrypoint leaves unprivileged user namespaces
> unrestricted.
> 
> In v1 we had the global sysctl to tackle this. In v2 (based on Christian
> and Andy's feedback), we combine per-cred cap_userns with per-userns
> cap_bset), and PID 1 or a service manager can lower the default userns

Plus, this is useful and improves security in general without having to
use any LSM framework.
Technical Details
Message-ID: <20261119-bagger-sagst-saatgut-096a6c993e9e@brauner>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367066-linux-kernel-netdev=dewy.ru
References: <20261028221705.3915340-1-halg@google.com> <20261107.aighieG4Ami1@digikod.net> <20261118.faiBee9Taigh@digikod.net> <av7TsXKUE69lyiWl@google.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367066-linux-kernel-netdev=dewy.ru
From: brauner@kernel.org (Christian Brauner)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH 0/8] userns: per-namespace capability bounding set and
 opt-in netns loopback
Date: Thu, 19 Nov 2026 15:08:37 +0100
Organization: Usenet Network
Message-ID: <20261119-bagger-sagst-saatgut-096a6c993e9e@brauner>
References: <20261028221705.3915340-1-halg@google.com>
 <20261107.aighieG4Ami1@digikod.net>
 <20261118.faiBee9Taigh@digikod.net>
 <av7TsXKUE69lyiWl@google.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2891652"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:t1umWY3+vVfiLY1fL9brDnEMGDY= sha256:ULcMRDnLarxiO+XzN7LVPPCJN7pJ2i+h5LxlD6fjbMw=
	sha1:KS1yzQdocjw60of5iy1XrwsAihg= sha256:eQjqOmwRFEUENvVinEp54XyHv2bH0SyMYhj5tbYhlms=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id DB2EA11568C; Thu, 19 Nov 2026 17:09:33 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id pGOh3BnMKcoC;
	Thu, 19 Nov 2026 17:09:26 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-367066-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id DB06811562D; Thu, 19 Nov 2026 17:09:17 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id A2CF51C65D5; Thu, 19 Nov 2026 14:08:51 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795097326;
	b=dHpveLZeAiAaAjO7+v3rnSQQUppJuacljiz14LyXg2lNIat/05yTWIY5b1ovX91W8mxI
	 jwtw9dtjnnG4LzrzqpIpGEpG/x7AVbvKzA3b+QbvZ4KMFlxw+CbWrzITzXsLA17mKYeaT
	 wUkC1BYWMYGgas8dulmE0/Ww4DpiK3B936GhJy9bP+IefnXoQ5IJYEdKSB3ivNQVLS67k
	 bkzauEJak2coXUVbycwf7zu78thtcql3/i02MO9HEyMihfyZmNOysxoIrzYx7lxvJLKg0
	 GvFVgLMITB+3mm4UDqwp4R32DrYE/+P4dhaLKuniAbXoWJamsE54s3MegE/NzTSaYsA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795097326;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=deLFcMvvltUgOBB0nzekqT3DRM7PlPpuRsUgmgE0xJs=;
	b=gkKmdeEPIrGVovHsiGO7Sxw+40JWeCgPaATVR7kjINXyc0Mqgs4cHKfF1pMySPWdrcga
	 Ho9pA8YihbEWzfEF2fIpnVvfx7zxHwYq7W2/rTAM6WBJkZspPGVS8Lf42hiyv6o9nTd26
	 cbBf7Rsz4kB0hhhUtJTIwYtlysgtMg8RuuqkZOrhDSHZ3DrHpGFWxWpHivT2x1XowWifr
	 ZkUkTTOrA22P2oyR5JbgNH0Mzcs/th1FxoO1LEzYJi3BEpQbMhOp4xs8TglFMgyalellp
	 BAo1/HE5SRmGjFUPZKHAFn/WGLN3euoExKZJuCJsBfdKHFTVBJQNr1Q0ng2CfFwd1vQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="VGT6CPW/";
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id C195960A2604;
	Thu, 19 Nov 2026 14:08:46 +0000 (UTC)
X-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=VGT6CPW/
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795097325;
	b=24qaEoeAnoNhJ/avfn/0+w5BGBhud0EpaTQMDwxkIHsElEeJNzchBr4VEsScibqsKBJb
	 L/mY0SZFtRkwCAm9wbH2ubIE5BR/6cyz86Wce2acpBtcAGw6LXVYzTztiTcoukzJpTFJ2
	 0MyqdtX4OvYz58lvb8zLWpNE5/igqwC4R6d7o+jGvrPMEUmfcX/myyBwooUYIob+6jhf3
	 w0DcHQWWmNTE9zg4SGykcQPm1GeW6nWkhRoPhfob5SkMMO6vSB84qsOOJK6vKFwdLCeWt
	 Rz2fmUACVM4dxZ4acNE5tUbo/n53UviEys+FRM2/Wd6Z7u0LzlCXhywTe4s1I6RWbPQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795097325;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=deLFcMvvltUgOBB0nzekqT3DRM7PlPpuRsUgmgE0xJs=;
	b=tpozhdCkIbrCmRCUQT/JMXUO6jhIvss6p9q/a9ZdiwvG+Bau1V9yxQiyF2Vd4hinVmHu
	 GcafOyOPJ/zJQDMQr4RrUUSzkVhncJ79vV4g227GC+Ui7Ky6+7fpNDn8xJgw5oQ8wWkQS
	 adEy6f4FYLozzmax7pBVKHdgoMm1AmO+T23muQrOCENWC2aZVQl7feVqAZVK84rmA8E+N
	 YxpiFiq1U12oYXWunC6WEfZDTgM7FgvUsSzJSuhpPwkHm5nMcE45MbZlrXS76XNk73dTa
	 eIIwLdHR40Fxzd45m/oHwIDon8dVXvXCHKcnMzZtvwOus1Ui0kewOuIJPaduMJv9Njg==
X-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="VGT6CPW/";
	arc=none smtp.remote-ip=100.103.45.18
X-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 ESMTPS id D4EAA606A320;
	Thu, 19 Nov 2026 14:08:45 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B6D61F000C4;
	Thu, 19 Nov 2026 14:08:39 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795097325;
	bh=deLFcMvvltUgOBB0nzekqT3DRM7PlPpuRsUgmgE0xJs=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=VGT6CPW/wtjf93Hbnt7vGTzxnm+m5tp5bIHpq29p+RgyV5QZXwZhn8vBEMLao+PYg
	 PCUZ1usoGhC/buvHKCHBr+3FqpWcZI8hA+G/AnsZf0kqeyDDRcuNRnBdBdvUjV8AF5
	 pbqd3WpW+PvZx1H0nHTPucGg+qChKpjfQL2yIPMnFVf3HQ8i7dLCper3SXG3Oq3Tnn
	 ljERMRXcjxXOlrsqDe8qKB1/RchUjdc/mKVygZTSK9ZQSj+CKnOlXkNaufaWLk9PPC
	 h14dMsVmUHWhkRabrbOfkgHJKFwhMsxJ0pXnGerIga4T/8beoldtWKWqL/RWlYosZL
	 wgB1vSwgzeB9A==
X-Cc: Mickaël Salaün <mic@digikod.net>, 
	Alexander Viro <viro@zeniv.linux.org.uk>, Paul Moore <paul@paul-moore.com>, 
	Serge Hallyn <sergeh@kernel.org>, Kees Cook <kees@kernel.org>, 
	"David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, 
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Jan Kara <jack@suse.cz>, 
	James Morris <jmorris@namei.org>, Simon Horman <horms@kernel.org>, 
	Jonathan Corbet <corbet@lwn.net>, Shuah Khan <skhan@linuxfoundation.org>, 
	Randy Dunlap <rdunlap@infradead.org>, Jann Horn <jannh@google.com>, 
	Günther Noack <gnoack@google.com>, KP Singh <kpsingh@kernel.org>, 
	Jonathan Calmels <jcalmels@3xx0.net>, Casey Schaufler <casey@schaufler-ca.com>, 
	linux-fsdevel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-api@vger.kernel.org, 
	containers@lists.linux.dev, netdev@vger.kernel.org, linux-doc@vger.kernel.org, 
	linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <av7TsXKUE69lyiWl@google.com>