From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KGWNOuO3RmKwWwEAgWs5BA (envelope-from ) for ; Fri, 01 Apr 2022 10:29:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yAvvN+O3RmLhdQEA9RJhRA (envelope-from ) for ; Fri, 01 Apr 2022 10:29:23 +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 87CD3DA09 for ; Fri, 1 Apr 2022 10:29:23 +0200 (CEST) Received: from localhost ([::1]:56816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1naCeo-000148-9r for larch@yhetil.org; Fri, 01 Apr 2022 04:29:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naCOh-0001Rl-RJ for guix-devel@gnu.org; Fri, 01 Apr 2022 04:12:43 -0400 Received: from [2001:470:142:3::e] (port=49000 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naCOg-0005ug-GH; Fri, 01 Apr 2022 04:12:42 -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=gFBiB6zgHvnJ5SKF6M8vFRsMrJXjtufOFMqmK+2yitk=; b=PwLau5ZF9s5u3VgJd2jk POz14T75trlerFLYhnlVvq4JK4Ai8/ZbL50UNgyu+SFZsD1RCNKiLQZgAwm25f3kuqyzXsKkDl5hV ut4VEu9mmx0h6O9jeEc6GaNDmRfcOlNgG1TY0shnXkDqdEYhZ+B/YMPVxhvPpU2QiCBJajq0Blsej ssqcnQWyjV7UvymhDDnBimmDZpBJ1ybeYfYG0x0PRk8CO7BeAuwDBt8qqUnuSc31BVGXRgERgBcd2 Mup+yo3jc5z/X6P3NkG/KVuyDxBr7zONhmmz5gKE8HQ5JBf7SRIhxBPuNB7tmBbQNJi0xtFW2awJR v+DqbpIcBZCUyg==; Received: from [193.50.110.173] (port=38536 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naCOf-0004lV-Ux; Fri, 01 Apr 2022 04:12:42 -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> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 12 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: Fri, 01 Apr 2022 10:12:39 +0200 In-Reply-To: (Maxime Devos's message of "Wed, 30 Mar 2022 13:30:22 +0200") Message-ID: <87pmm1p6h4.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=1648801763; 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=gFBiB6zgHvnJ5SKF6M8vFRsMrJXjtufOFMqmK+2yitk=; b=QWOoXpLu/1SCLey8rF06DKGupb56bMYDBmx+WkthOXqNl7364G2elY2u7mXYZ+aZUNorZV fNbJAOPridrmJlQZoeeZrabcTEm+nFDeFsEjq2P91wgBA3OXaj8Tz/TPwG6MWSlu0ys3HV zdetYoB2ZMozZaLC85Gwf1y6ngF9y8vcIIM1KFRPCbEaNcc7UmenUijuWFnermvjvb5IrM W17CTLYmtxkSGeYB45hwqMWPFrHiIMATv+2AT6PyyAdoeM0rHYOp7kXLvZ0/1UrtlAdw7k UyGFB7YUgY09Bmiicd0Cu80Qok/Fi3PrgTAEDcKg/WlsWs/cYEAul7x+0mEJag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648801763; a=rsa-sha256; cv=none; b=cwjSORlzjfjE/099RtCMBPuwkY6DjxB5U3pBBjtH/WLnREDCVq3dwXzN06wbZv6Low8Q73 p9a1PHm7L8JqgIiS+OY4/KJN2wG8BQDVumzYm6WneMhUgq9pgvQ2Z3cGs6OMA9mY54CdpG 49KfM7cs9/fcKegqUlXh5znmKDf/FOUZrjo1lfJ1Wgt7i43JXq9rBnj6qXugSww/uyC4YA qKyJNabP0MRnjzG95PxlECE5RtllAMGW6xRDogEdycMu5CwK5ousGEYT6JFcUfCohLe5Kv a9yJMlUObiKTWTqRa/aW5mEhIqXqLgE9aJecf+o7QB+vcSRiQy1Cq4S3ddIZlw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=PwLau5ZF; 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: -5.27 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=PwLau5ZF; 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: 87CD3DA09 X-Spam-Score: -5.27 X-Migadu-Scanner: scn0.migadu.com X-TUID: aY4URo2+p5Yu Hi, Maxime Devos skribis: > Antonio Carlos Padoan Junior schreef op wo 30-03-2022 om 08:51 [+0200]: >> Hello, >>=20 >> I'm trying to figure out how to set a unprivileged container using lxc >> in guix. I do not know either how to allocate subuid/gid space in guix, > > subuid/gid are _not_ unprivileged. They are an userspace feature by > the (privileged) setuid binary 'newuidmap', see > . > > I don't think there's currently a mechanism for that in Guix System, > except manually creating and modifying /etc/subuid appropriately and > installing the setuid binaries. However, I suppose that the 'user- > account' record could be extended to support subuid/subgid and > automatically create /etc/subuid. Or we could unconditionally add 65536 subuids for each non-system user account; that=E2=80=99s what other distros seem to be doing. 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. Thoughts? Ludo=E2=80=99.