From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WDGzJ1ZVSGILxQAAgWs5BA (envelope-from ) for ; Sat, 02 Apr 2022 15:53:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ELjvJFZVSGIlfAAA9RJhRA (envelope-from ) for ; Sat, 02 Apr 2022 15:53:26 +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 30C328FE4 for ; Sat, 2 Apr 2022 15:53:26 +0200 (CEST) Received: from localhost ([::1]:54180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1naeBx-0007zE-71 for larch@yhetil.org; Sat, 02 Apr 2022 09:53:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naeBC-0007wI-Dq for guix-devel@gnu.org; Sat, 02 Apr 2022 09:52:38 -0400 Received: from [2a02:1800:110:4::f00:18] (port=42770 helo=michel.telenet-ops.be) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1naeBA-0007fG-6i for guix-devel@gnu.org; Sat, 02 Apr 2022 09:52:38 -0400 Received: from [192.168.33.254] ([213.119.139.223]) by michel.telenet-ops.be with bizsmtp id DpsY270014pPEFp06psYxy; Sat, 02 Apr 2022 15:52:33 +0200 Message-ID: <155379df66e2bd76a411090460c3501db2ed2ea6.camel@telenet.be> Subject: Re: lxc and subuid From: Maxime Devos To: Ludovic =?ISO-8859-1?Q?Court=E8s?= Date: Sat, 02 Apr 2022 15:52:11 +0200 In-Reply-To: <87pmm1p6h4.fsf@gnu.org> References: <87v8vwj5la.fsf.ref@yahoo.com.br> <87v8vwj5la.fsf@yahoo.com.br> <87pmm1p6h4.fsf@gnu.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-9dhH4KdyooM6XV2hF9+r" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1648907553; bh=/ZbcBNFeuGKbM65hjCj/JLc1wY30v+ctQIdKE1reIl8=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=iwvbvTQo7AOLZKgfGUu56uRf9pB5/CbHHeMZldVOqGcaHkfMHeuRHlGAqOLdXQvEW z5xssdIy7QlixnEk6r4a2nc4j1eiDXZy8TGeRb48YP2Q6VrRKqYBxXNyboBqp7KLP0 KzWWFBCoRkQkG4XjoJKd8saWCz/xvP8HIBrHirwrzhmbip5Euob+oiN9FVhwdR+v/a 7YPfA1BcFpoEr9D7UbC7jjWKsdNMtT/J6VUc4/tF/V4YGITTXqTRuqX7InRDq86AFg oFNxCAHZpJO/CTLI7a/Q3nbe4fVFRncvnm44M2s7EW/KUq/RpBpnBZOg/85vr8ks16 P15gLGtRz6uiA== X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:1800:110:4::f00:18 (failed) Received-SPF: pass client-ip=2a02:1800:110:4::f00:18; envelope-from=maximedevos@telenet.be; helo=michel.telenet-ops.be X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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=1648907606; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=/ZbcBNFeuGKbM65hjCj/JLc1wY30v+ctQIdKE1reIl8=; b=mn1Nt3ME8SqtMGopAjLAaNsonZBz7I2vKWyovVWRMZJGf7k4gvL4ZnHIvpJSW/fhwGw2s9 PCpr2RHuFnijdNzgLxHE1SgXAlAa+ssaf6pKqMeeXfeCPVYaWwXVp5pk0PvswLYHacl4+2 u3Zi/ppymRE9aROFdExpQ5RMyHQjQ5fGLAEUYrTumz+5DcJJIQffQdCXZE+QrMqE+DjGrR NlwAwIceCuKDLna2B5i98/7DBUbL2DJoIfBUYHl3QrgbKfhO2tec4T0ri4ki80WyRwhHx+ RS4/6yTuy/hz1GEIhIh+6Mz/AkQ777rsQzJiWrnxdsBwf/Z/mPXeQYy6iCmA1A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648907606; a=rsa-sha256; cv=none; b=YjuhYfLSSCPcrmUqWoeVMvfvvleteREI01ZVLIdaEzn8c84FSfzXiPWumhjLYMH5/5dStq UIZavNX+EwBAGhBTi9dJlxQy/p3YHRmnZTB9EbaOpab7oOnD16S7IdZycVz6MAKn8tIr6P w0tkHPa8bEbZisITzI2PhYAVSi4ET2B+WckqanXAOo8i3MUQ80X7JJCOmhvHc9jC8iP4sK rSbtKzF8eD81Mt+ypQ4UWVUFmHfncCqIhVTNWo3bc5O/3x1D+3PAG9JlfBQRBkbHHnAR8w 2uLpzgiw+5e3lfrsR12I/USW67v6zBVqK2j1IMY13suWEUpyYvjLg3jnSeVmrA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=iwvbvTQo; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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: 3.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=iwvbvTQo; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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: 30C328FE4 X-Spam-Score: 3.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: WZQeEuM5b6sz --=-9dhH4KdyooM6XV2hF9+r Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 ... Greetings, Maxime. --=-9dhH4KdyooM6XV2hF9+r Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYkhVCxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7uKeAQD9KE8kZFNXB81OISQMEE+4gWjY Wa4r2/pQxzl6JrM6HAEA0WaqDBtF4Rc4koWMrCjUndsRmHfCVRTSEAGLoNq2UA8= =5Y3V -----END PGP SIGNATURE----- --=-9dhH4KdyooM6XV2hF9+r--