From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 KMFaOTK4HGLbhwAAgWs5BA (envelope-from ) for ; Mon, 28 Feb 2022 12:55:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eB0WNjK4HGIPSAAAauVa8A (envelope-from ) for ; Mon, 28 Feb 2022 12:55:30 +0100 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 95D362CDB4 for ; Mon, 28 Feb 2022 12:55:30 +0100 (CET) Received: from localhost ([::1]:36996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOecj-00089Y-Bb for larch@yhetil.org; Mon, 28 Feb 2022 06:55:29 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOeTa-0002NK-85 for bug-guix@gnu.org; Mon, 28 Feb 2022 06:46:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38175) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nOeTZ-0003sb-Uh for bug-guix@gnu.org; Mon, 28 Feb 2022 06:46:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nOeTZ-0000mT-TA for bug-guix@gnu.org; Mon, 28 Feb 2022 06:46:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#54111: guile bundles (a compiled version of) UnicodeData.txt and binaries Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 28 Feb 2022 11:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54111 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxime Devos Received: via spool by 54111-submit@debbugs.gnu.org id=B54111.16460487552987 (code B ref 54111); Mon, 28 Feb 2022 11:46:01 +0000 Received: (at 54111) by debbugs.gnu.org; 28 Feb 2022 11:45:55 +0000 Received: from localhost ([127.0.0.1]:60305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOeTT-0000m6-2e for submit@debbugs.gnu.org; Mon, 28 Feb 2022 06:45:55 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:60202) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOeTR-0000lu-4K for 54111@debbugs.gnu.org; Mon, 28 Feb 2022 06:45:53 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 0948C26E; Mon, 28 Feb 2022 12:45:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bdMsgwbtyMcn; Mon, 28 Feb 2022 12:45:46 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 2BCDC205; Mon, 28 Feb 2022 12:45:46 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <9953e99b32693fa2393fa9919973323207413063.camel@telenet.be> <87h78kwh5c.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 10 =?UTF-8?Q?Vent=C3=B4se?= 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: Mon, 28 Feb 2022 12:45:45 +0100 In-Reply-To: (Maxime Devos's message of "Sun, 27 Feb 2022 20:45:50 +0100") Message-ID: <87wnhfdxjq.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-Spamd-Bar: / X-Rspamd-Server: hera X-Rspamd-Queue-Id: 0948C26E X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 54111@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646049330; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=bcjgtwlaS8KwkC5dyhuL/0Hlt9qdl4Cnc/ZFSNZJx4Q=; b=ErvLe52dnyDEAJL5ywPzHodVB1MY+qb4xXJc6IPOUhiGPV4MrM2y+KQDkcQEEwqz0zj75D /R4Je6r2sNc3BoNotUVxf5iRpdOd09gsWIpi8MJw16o86UBU0qnF3Abqe+M53QERyFJTiz Xns0zC13FGfRIX4z8/UuluRO6/ojhiWfhDIl2zHRwVsaigDJuU7V/kQWlztiK1DPTwYBr5 zG8okCb8Tq548fpLY5Iksmcns78mV14TyuVMwglmBWTdrTicUCZ9gec618xL8WAyQHDQEI ee3zzOFtXJvecxxqkcZ+ARBwlDVNZaklOlpoyWD1cSeYhLwZjA8ho0OcJ5m7iw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646049330; a=rsa-sha256; cv=none; b=FNltyVyy36CZgtWn6gwuNFEVIwr5IY6JJ7M2B+wIZTtWb1+VZ3J/3QXl0uKtVK+2DSQTpy nO88kPL/htq0jk4WiAd+4yNMZoLE3EMqeUsCJmHKh1TJnFfQFpu2CI0ZuteoOkmLEfDbIe Cf8bCXT8Kqm/JCBasXkDqF86eHqjBVsl/r63PM4a3nAwTqV83jiUB7H9/jd8j7KxZbtUQO Ox77ungPo+KTZaLo/4uUY7mTpK0EF2KsNFwiPJjtz78wSba6+Sb7qvbQD2YA/8T5cBmohi m08VfUi/GHWbnbg0JZOKhY9nEd5D6nzP5qbD58LQNajZXuBkNXbnz40ZXF5hmg== 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 "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.60 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 95D362CDB4 X-Spam-Score: -4.60 X-Migadu-Scanner: scn0.migadu.com X-TUID: Xrs2bANZx1wM Hi, Maxime Devos skribis: > Ludovic Court=C3=A8s schreef op zo 27-02-2022 om 14:52 [+0100]: [...] >> We could rewrite =E2=80=98unidata_to_charset.pl=E2=80=99 in Scheme, but = then Guile would >> still need to provide a pre-compiled version of srfi-14.i.c for >> bootstrapping purposes.=C2=A0 Or we could rewrite it in Awk, since Guile >> already depends on Awk anyway. >>=20 >> Thoughts? > > The =E2=80=98blob=E2=80=99 seems relatively harmless to the compilation p= rocess, so > when there are bootstrapping problems, I think we can leave it in. > > However, all this Unicode is important for some other things (e.g. some > DNS and filesystem things). So it would be nice to validate that no > attacker with access to the Guile repo stealthily introduced some wrong > information in during an otherwise routine update of the Unicode > information. The threat model is that the repository is trusted (that=E2=80=99s a strong assumption, but that=E2=80=99s how it is). You cannot protect against some= one with access to the repository. We could use =E2=80=98guix git authenticate=E2=80=99 to improve on that. > Hence, the following proposal: > > * Make perl an optional dependency of Guile (upstream) and add an > '--with-unicode-data=3D[...]' configure flag or something like that. > > If perl is detected by './configure' and '--with-unicode-data=3D...' > is set, then let one of the makefiles run 'unidata_to_charset.pl' > and compare the 'new' srfi-14.i.c against the old srfi-14.i.c. > > In case of a mismatch, bail out. > > When there's no perl or --with-unicode-data, then just use the > bundled srfi-14.i.c. > > * Add 'perl' (or 'perl-boot0' because that perl is probably good > enough?) to the native-inputs of guile. > > Actually, the second is already done in 'guile-final'. > Optionally, this can be combined with rewriting it in Scheme > or some other language. It might be easier to rewrite in Awk in build srfi-14.i.c unconditionally no? We can also add =E2=80=98--with-unicode-data=E2=80=99, though that=E2=80=99= s orthogonal. Thanks, Ludo=E2=80=99.