From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0JFAMIoIe2Bj1wAAgWs5BA (envelope-from ) for ; Sat, 17 Apr 2021 18:10:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aIvXKooIe2BGLAAA1q6Kng (envelope-from ) for ; Sat, 17 Apr 2021 16:10:50 +0000 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 772F316D08 for ; Sat, 17 Apr 2021 18:10:50 +0200 (CEST) Received: from localhost ([::1]:33664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXnWz-0000aj-Mu for larch@yhetil.org; Sat, 17 Apr 2021 12:10:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52864) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXnWo-0000V2-6U for guix-devel@gnu.org; Sat, 17 Apr 2021 12:10:39 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35726) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXnWn-0000Dm-Ux; Sat, 17 Apr 2021 12:10:37 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=41662 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lXnWn-0003fs-IU; Sat, 17 Apr 2021 12:10:37 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: =?utf-8?Q?Vin=C3=ADcius?= dos Santos Oliveira Subject: Re: Feature request: hostname namespaces in guix environment References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 28 Germinal an 229 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: Sat, 17 Apr 2021 18:10:34 +0200 In-Reply-To: (=?utf-8?Q?=22Vin=C3=ADcius?= dos Santos Oliveira"'s message of "Wed, 7 Apr 2021 10:26:31 -0300") Message-ID: <87r1j8sxhh.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.23 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@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618675850; 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; bh=b33IGeDsZ/AGuXxRZFRYzuscjtdtaUG3heGb6FIVoZo=; b=nwZ1SrDIIReG/RgxXqmcUvzBHrJ1MLvoPvY2S1+4sIdDGMQiP3+iOrYZb99B4WBCKtbPfV dcVK6IjpXzb+qycV1KZkLl02R1KgqGlfMkm7IYi6LV985FNppzGy6NjY34R5ezqh2xiwSe NzImnY8E96tuPanfjsCCrq69H6jFJPji2znX+n9bZa9X+bLDkGxmXdKxS/LBIwtrSW7G3k D0BOP32xG5V8iHfjBXVaEddWsSzRmL/YzJfFhfDfBAqW3EVRyJWpkat+k1Tu8LhoES8CA5 SMJ7AwSZzi79ZIomD2Iu9eJF0KNoeTY/E7we/OreMcNYjP/13iO4HsoIh5D/AQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618675850; a=rsa-sha256; cv=none; b=DieYHlmOiHyuUGRc2zJ0Aa3zforcwj1NK6vSbMWOPQpRJg5IVppDZFRgfg7SPUE+xmL9/l j4P8Fm0Hx9v7hKawPVmkxEsvoASWKFhSxdHL8BNglT8y1RtZO55/4z93xZzCYXCfgRQpUy rirLdi742pJqMOoQu44lgO9/Z8L/uvQQFzt7ZSxD/HsqaN0aCtvwB0Y6V9GPYZbjgXAoU9 6DoSHu0tjA6SOCenXXZ0WTjczE/AEW7kVVn+mdhSMREJAt66nr9IMQids3rQXyFcMKBmC5 b8BaaGHq7KU6cXUEq/7Ai8IEd+RHTFwHYdy358wGVqcKjMY7+38AtaLHYonpUg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -1.44 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 772F316D08 X-Spam-Score: -1.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: ynQukODOEvXJ Hi Vin=C3=ADcius, Vin=C3=ADcius dos Santos Oliveira skribis: > Right now my hostname is leaking to the container and that is certainly a > hint to my main persona. AFAICS, =E2=80=98guix environment -C=E2=80=99 already starts contains in a = separate UTS namespace (see =E2=80=98%namespaces=E2=80=99 in (gnu build linux-containers= )). However, it does not attempt to change the host name, since you get a non-zero UID inside that environment, you cannot change it. What we could do is add a =E2=80=98--uid=E2=80=99 option to =E2=80=98guix e= nvironment=E2=80=99 and/or a =E2=80=98--host-name=E2=80=99 option. WDYT? Thanks, Ludo=E2=80=99.