From unknown Sat Jun 14 19:41:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43762: =?UTF-8?Q?=E2=80=98guix?= environment =?UTF-8?Q?-C=E2=80=99?= containers lack /etc/hosts Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 02 Oct 2020 13:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43762 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 43762@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.16016468445569 (code B ref -1); Fri, 02 Oct 2020 13:55:02 +0000 Received: (at submit) by debbugs.gnu.org; 2 Oct 2020 13:54:04 +0000 Received: from localhost ([127.0.0.1]:39778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOLVc-0001Rj-ID for submit@debbugs.gnu.org; Fri, 02 Oct 2020 09:54:04 -0400 Received: from lists.gnu.org ([209.51.188.17]:32780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOLVa-0001RR-4w for submit@debbugs.gnu.org; Fri, 02 Oct 2020 09:54:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOLVZ-0002a3-EZ for bug-guix@gnu.org; Fri, 02 Oct 2020 09:54:01 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:50729) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOLVV-00074J-JT for bug-guix@gnu.org; Fri, 02 Oct 2020 09:54:00 -0400 X-IronPort-AV: E=Sophos;i="5.77,327,1596492000"; d="scan'208";a="360695387" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Oct 2020 15:53:49 +0200 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 11 =?UTF-8?Q?Vend=C3=A9miaire?= 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: Fri, 02 Oct 2020 15:53:49 +0200 Message-ID: <87a6x4ka36.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=192.134.164.104; envelope-from=ludovic.courtes@inria.fr; helo=mail3-relais-sop.national.inria.fr X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/02 09:53:50 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi! Look: --8<---------------cut here---------------start------------->8--- $ guix environment -C --ad-hoc coreutils -- cat /etc/hosts cat: /etc/hosts: No such file or directory $ guix describe Generacio 162 Oct 01 2020 00:23:38 (nuna) guix 7607ace repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 7607ace5091aea0157ba5c8a508129cc5fc4f931 --8<---------------cut here---------------end--------------->8--- I think we should add /etc/hosts with an entry for =E2=80=9Clocalhost=E2=80= =9D, just like libstore/build.cc does. Ludo=E2=80=99. From unknown Sat Jun 14 19:41:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43762: =?UTF-8?Q?=E2=80=98guix?= environment =?UTF-8?Q?-C=E2=80=99?= containers lack /etc/hosts Resent-From: Bengt Richter Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 02 Oct 2020 14:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43762 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 43762@debbugs.gnu.org Reply-To: Bengt Richter Received: via spool by 43762-submit@debbugs.gnu.org id=B43762.160164951312454 (code B ref 43762); Fri, 02 Oct 2020 14:39:01 +0000 Received: (at 43762) by debbugs.gnu.org; 2 Oct 2020 14:38:33 +0000 Received: from localhost ([127.0.0.1]:42270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOMCe-0003En-WB for submit@debbugs.gnu.org; Fri, 02 Oct 2020 10:38:33 -0400 Received: from imta-38.everyone.net ([216.200.145.38]:44418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOMCZ-0003Eb-Im for 43762@debbugs.gnu.org; Fri, 02 Oct 2020 10:38:31 -0400 Received: from pps.filterd (omta003.sj2.proofpoint.com [127.0.0.1]) by imta-38.everyone.net (8.16.0.43/8.16.0.43) with SMTP id 092Ec4uM030995; Fri, 2 Oct 2020 07:38:26 -0700 X-Eon-Originating-Account: H2CEJMqwiTq-3mBHMAi_JBjSGLJPwPwnZ_mLBl6Ne-o X-Eon-Dm: m0116953.ppops.net Received: by m0116953.mta.everyone.net (EON-AUTHRELAY2 - 53b92420) id m0116953.5f62b242.15955b; Fri, 2 Oct 2020 07:38:24 -0700 X-Eon-Sig: AQMHrIJfdztgBXe4jgIAAAAC,0daeb90ee6450778e964f080efa126b5 X-Eip: 2Fa5Y9r2Y5cy2VFVsRqezoa6vM23UWuaLAO5M2uDPzA Date: Fri, 2 Oct 2020 16:38:13 +0200 From: Bengt Richter Message-ID: <20201002143813.GA4900@LionPure> References: <87a6x4ka36.fsf@inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87a6x4ka36.fsf@inria.fr> User-Agent: Mutt/1.10.1 (2018-07-13) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-10-02_10:2020-10-02, 2020-10-02 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 mlxscore=0 phishscore=0 bulkscore=0 adultscore=0 clxscore=1034 mlxlogscore=946 suspectscore=0 spamscore=0 impostorscore=0 malwarescore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2010020115 X-Spam-Score: -0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) Hi Ludo, On +2020-10-02 15:53:49 +0200, Ludovic Courtès wrote: > Hi! > > Look: > > --8<---------------cut here---------------start------------->8--- > $ guix environment -C --ad-hoc coreutils -- cat /etc/hosts > cat: /etc/hosts: No such file or directory > $ guix describe > Generacio 162 Oct 01 2020 00:23:38 (nuna) > guix 7607ace > repository URL: https://git.savannah.gnu.org/git/guix.git > branch: master > commit: 7607ace5091aea0157ba5c8a508129cc5fc4f931 > --8<---------------cut here---------------end--------------->8--- > > I think we should add /etc/hosts with an entry for “localhost”, just > like libstore/build.cc does. > > Ludo’. > How sensitive is this data? E.g., compared to /etc/hostname and /etc/machine-id ? man machine-id says in part --8<---------------cut here---------------start------------->8--- This ID uniquely identifies the host. It should be considered "confidential", and must not be exposed in untrusted environments, in particular on the network. If a stable unique identifier that is tied to the machine is needed for some application, the machine ID or any part of it must not be used directly. Instead the machine ID should be hashed with a cryptographic, keyed hash function, using a fixed, application-specific key. That way the ID will be properly unique, and derived in a constant way from the machine ID but there will be no way to retrieve the original machine ID from the application-specific one. The sd_id128_get_machine_app_specific(3) API provides an implementation of such an algorithm. --8<---------------cut here---------------end--------------->8--- And how do you pick an appropriate hostname (which often appears in /etc/hosts) for an image that could be booted in the clouds, or like a live USB, on any compatible laptop? -- Regards, Bengt Richter From unknown Sat Jun 14 19:41:47 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#43762: closed (Re: bug#43762: =?UTF-8?Q?=E2=80=98guix?= environment =?UTF-8?Q?-C=E2=80=99?= containers lack /etc/hosts) Message-ID: References: <87a6x4iaei.fsf@gnu.org> <87a6x4ka36.fsf@inria.fr> X-Gnu-PR-Message: they-closed 43762 X-Gnu-PR-Package: guix Reply-To: 43762@debbugs.gnu.org Date: Fri, 02 Oct 2020 21:31:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1601674262-1652-1" This is a multi-part message in MIME format... ------------=_1601674262-1652-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #43762: =E2=80=98guix environment -C=E2=80=99 containers lack /etc/hosts which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 43762@debbugs.gnu.org. --=20 43762: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D43762 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1601674262-1652-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 43762-done) by debbugs.gnu.org; 2 Oct 2020 21:30:10 +0000 Received: from localhost ([127.0.0.1]:42678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOScz-0000P0-T4 for submit@debbugs.gnu.org; Fri, 02 Oct 2020 17:30:10 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOScv-0000Mz-Gt for 43762-done@debbugs.gnu.org; Fri, 02 Oct 2020 17:30:08 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42712) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOScq-0004Dd-8V for 43762-done@debbugs.gnu.org; Fri, 02 Oct 2020 17:30:00 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=43258 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kOScp-0005uz-KN for 43762-done@debbugs.gnu.org; Fri, 02 Oct 2020 17:29:59 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: 43762-done@debbugs.gnu.org Subject: Re: bug#43762: =?utf-8?Q?=E2=80=98guix?= environment =?utf-8?Q?-C?= =?utf-8?Q?=E2=80=99?= containers lack /etc/hosts References: <87a6x4ka36.fsf@inria.fr> Date: Fri, 02 Oct 2020 23:29:57 +0200 In-Reply-To: <87a6x4ka36.fsf@inria.fr> ("Ludovic =?utf-8?Q?Court=C3=A8s=22?= =?utf-8?Q?'s?= message of "Fri, 02 Oct 2020 15:53:49 +0200") Message-ID: <87a6x4iaei.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43762-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ludovic Court=C3=A8s skribis: > $ guix environment -C --ad-hoc coreutils -- cat /etc/hosts > cat: /etc/hosts: No such file or directory Fixed in 0f53c801b91919380a924b402d1ff822bb1dc6ea! Ludo'. ------------=_1601674262-1652-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 2 Oct 2020 13:54:04 +0000 Received: from localhost ([127.0.0.1]:39778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOLVc-0001Rj-ID for submit@debbugs.gnu.org; Fri, 02 Oct 2020 09:54:04 -0400 Received: from lists.gnu.org ([209.51.188.17]:32780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOLVa-0001RR-4w for submit@debbugs.gnu.org; Fri, 02 Oct 2020 09:54:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOLVZ-0002a3-EZ for bug-guix@gnu.org; Fri, 02 Oct 2020 09:54:01 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:50729) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOLVV-00074J-JT for bug-guix@gnu.org; Fri, 02 Oct 2020 09:54:00 -0400 X-IronPort-AV: E=Sophos;i="5.77,327,1596492000"; d="scan'208";a="360695387" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Oct 2020 15:53:49 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Subject: =?utf-8?Q?=E2=80=98guix?= environment =?utf-8?Q?-C=E2=80=99?= containers lack /etc/hosts X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 11 =?utf-8?Q?Vend=C3=A9miaire?= 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: Fri, 02 Oct 2020 15:53:49 +0200 Message-ID: <87a6x4ka36.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=192.134.164.104; envelope-from=ludovic.courtes@inria.fr; helo=mail3-relais-sop.national.inria.fr X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/02 09:53:50 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi! Look: --8<---------------cut here---------------start------------->8--- $ guix environment -C --ad-hoc coreutils -- cat /etc/hosts cat: /etc/hosts: No such file or directory $ guix describe Generacio 162 Oct 01 2020 00:23:38 (nuna) guix 7607ace repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 7607ace5091aea0157ba5c8a508129cc5fc4f931 --8<---------------cut here---------------end--------------->8--- I think we should add /etc/hosts with an entry for =E2=80=9Clocalhost=E2=80= =9D, just like libstore/build.cc does. Ludo=E2=80=99. ------------=_1601674262-1652-1--