From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4N58HpYuTGLzNgEAgWs5BA (envelope-from ) for ; Tue, 05 Apr 2022 13:57:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ONWpG5YuTGLDQQAA9RJhRA (envelope-from ) for ; Tue, 05 Apr 2022 13:57:10 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 29BFE47B90 for ; Tue, 5 Apr 2022 13:57:10 +0200 (CEST) Received: from localhost ([::1]:56992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nbho5-0000dO-6N for larch@yhetil.org; Tue, 05 Apr 2022 07:57:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbhkz-00060i-La for guix-devel@gnu.org; Tue, 05 Apr 2022 07:54:04 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57722) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbhkl-0007pK-Kx; Tue, 05 Apr 2022 07:53:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=Jhk1oPAUUB0DABvsC4SBSqhTqSgqEhUJ3zov4X42p34=; b=J0hj8jdWQOjv2z8rFtoD rnx3eaKjsHLXJJRXCXNRpnDGKQrAZdCXyfBvj34HtFplYbqXEfBj6d8dAW7WoRiFkeAXvks4nt4D1 M6G+LWMbdyrr7/VeeQqSYFKWHY/ODSUTL/B4MOLHUjJIUWkMGw1kzwzzaKLj3JWjB1ZQissjPNk8B qMD4kCBauUzV2XaPGRFiRT/vDVEIR70NmptLcAAG22osUc+FP4FnTmbsSk7qiE7mCXF1gsValFviO mvkFQrdor+187XTzlsTOoxhJIncSHzJIPk/TBUdULOuo4sAYX4g+3u4YHuLbBwitE8oprW8ZSBFCj /DsB/v5vFYL3Kw==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=45248 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbhkl-0006Ru-4a; Tue, 05 Apr 2022 07:53:43 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxime Devos Subject: Re: lxc and subuid References: <87v8vwj5la.fsf.ref@yahoo.com.br> <87v8vwj5la.fsf@yahoo.com.br> <87pmm1p6h4.fsf@gnu.org> <155379df66e2bd76a411090460c3501db2ed2ea6.camel@telenet.be> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 16 Germinal an 230 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 05 Apr 2022 13:53:41 +0200 In-Reply-To: <155379df66e2bd76a411090460c3501db2ed2ea6.camel@telenet.be> (Maxime Devos's message of "Sat, 02 Apr 2022 15:52:11 +0200") Message-ID: <8735irrbju.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649159830; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Jhk1oPAUUB0DABvsC4SBSqhTqSgqEhUJ3zov4X42p34=; b=mAslFI2ZzE/7nPS+ccKGbPOfrFBfzdpJEI6jOJjXB5H7vjjWYDhotBll7iaxgPWJiX49dN sMLv3ny1EcaXS7bNrCRorGFkLz+K1czv/HmOlGWukPQIlOaHCvm17JGvNwd+nTgcoxX1Wq dnQJJT4U/kSYROJ+eCNoVLLxaZFJEeUyubBax0Om6t0fTUf3Qotx4OaiOZiJn7MjUXMaMb uAjCiAWH7xnw+aMHqDtvM4CcezZlZ+4wJ5Elv9gJNqBqTsCRm3JVf3m6QmRgQtQP8H0zfm 3N/rZAsNqECWhFoFbaOzBjkUEFTQD1Bwzf05fOzpDstVI1HjoIFS0pwXR7S9BQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649159830; a=rsa-sha256; cv=none; b=A/MPBHz9VL/oovvasdnB/bs2AVsUgTzBr28BMctpZQRDU31J1B5yAKSAXqvPvhVsco1Y4A znrtqdu2RVa7JTnIpf29ucnFU2MmhbxP14UWNrtC5pR1RJZSFXMg/Nlqz8h0p0yhuC7UoI dzA8aAdtdtkaBQw4lYbVTnalXXl6AhF+KRaZBlXhYI2Hv9we6jmnjirfRNYVPUSiYiDyOG jzS0Ss3Jl+yGxL6EnQ6s3UejDAyUWiuRtq3peRxsi15USE02YYRtyXQA+elx9reeoi1BAz G8d+gh8Y5sU/tDQRuZI+Yczdn5y51PN7u2s0eM8d5jDdmKAkL5ee8aINrup78A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=J0hj8jdW; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -9.57 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=J0hj8jdW; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 29BFE47B90 X-Spam-Score: -9.57 X-Migadu-Scanner: scn0.migadu.com X-TUID: jo+DnKB0i0x6 Hi! Maxime Devos skribis: > Ludovic Court=C3=A8s schreef op vr 01-04-2022 om 10:12 [+0200]: >> Or we could unconditionally add 65536 subuids for each non-system user >> account; that=E2=80=99s what other distros seem to be doing. >>=20 >> I think we could take advantage of it for =E2=80=98guix system container= =E2=80=99: it >> could run in an unprivileged user namespace and map several UIDs in that >> namespace, such that it doesn=E2=80=99t need to run as root anymore. > > I think it will need to be conditional, because the container only has > access to 65536 uids. So if the container contains at least one non- > system user, then all available uids are occupied so there is no room > anymore for 'root' or per-service users ... True; we could special-case that in =E2=80=98containerized-operating-system= =E2=80=99. But for bare-metal deployments, making that unconditional seems reasonable to me. Thanks, Ludo=E2=80=99.