From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id oJVsDeuaFmbUBQAAqHPOHw:P1 (envelope-from ) for ; Wed, 10 Apr 2024 15:58:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id oJVsDeuaFmbUBQAAqHPOHw (envelope-from ) for ; Wed, 10 Apr 2024 15:58:03 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=VhHDkoKl; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712757483; 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=FCm/IBAElBYeNU+nmS9v7Z4jGmvcFdFSWfJW2MUcj+E=; b=GrzvjeWSq67hSwoZFcuQiswPstD0lUNCep5SB5WMmcv9eCeL6AL/jqgHHnemmV5yhop5wI OUdrM8hZtCxdoFOJNNDTtRT6TnDTHgJsMeU5/U0gnIH6FoBHiWu/mvPOYIXugpnwqEQlwt YMYd6xiI3VWV586m/RDIVJ/7o5jE7q2Qru2sN4+/HFwyTG1fjyrMi9OGY/SGJchRyn9Lpa W3oF6oxRyx7sN4lV2/6zqcH7YoY3rwal3aN5fu4hKR6Ao2rkcNJeUdCpCeqHUWYWsjH8H0 nGU5mSjd5/SP4N/YpLN7CuYtyK65kG2jWLW0u7tsB+TuKN0RdfHpZTSdMZu/ZA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712757483; a=rsa-sha256; cv=none; b=YkduMAWosAE+Dg4wNtczfzV+27bCtGl6Y2PwDkekpjkE9IMUJsf/lLEDpVg/T8iwtwdcpj DiDs/E2hiFnLlP37PCo+VqjkIKtYF4OO1P4vLn9kVAkpFqmob0bSnvpj3hbfHpYPa+EGZk Zuwh1xGkPATIbL5LDYuKqEjEj4EO3IpWBcwIPDF83ZQ7uTbgGwWtfWT2QO0GKRvtk9XNn7 4hzoXOIwJXJr7hxVJ5jvchebKk893HBNBBGsjVegrxJOkWH7CyTKRg4/tWgRD/YmOvivFU gFRQnoWGbXEr9HrAxVpLxm2CyR8BJnqAQ156IfDTBLfEmio9Yyc6HqvJmvD4cg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=VhHDkoKl; 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"; dmarc=pass (policy=none) header.from=gnu.org 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 0A4BC528BA for ; Wed, 10 Apr 2024 15:58:03 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ruYS7-0005q5-OD; Wed, 10 Apr 2024 09:57:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ruYS6-0005pg-Hg for guix-devel@gnu.org; Wed, 10 Apr 2024 09:57:26 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ruYS3-0005D0-EP; Wed, 10 Apr 2024 09:57:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=FCm/IBAElBYeNU+nmS9v7Z4jGmvcFdFSWfJW2MUcj+E=; b=VhHDkoKl6T8zfQFFJBZJ iDzk7apj2M9pxTI7pZcUGKDQj3JwdhBW5srlCxw1I+Uo+kJoXDY74eNjxoYb37IEoxYGU66YcpoGx HmDuDCGdRW4VFiUyZAVzqBe3AhimtKBnVK+tnDLtuAisJrTYPzjbB5JELWsIyUWQOU37parEaVPdn ICaeLfT1CfIFlasWD5WpY8Lz6bxHrDg6CxXQREpF3Fm21qOIJpVzjLcQB7d4e98hHjh6Fh4ubohZM 8/F45qAGal5hutb7i/vY4xI4mlBARHgLEH0JveTjLGmfHfjbg17x3PPfHWyI8BiNR1ln9Vzqpjo2F X2622Z/9xDgFcQ==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ekaitz Zarraga Cc: Attila Lendvai , Giovanni Biscuolo , Guix Devel Subject: Re: backdoor injection via release tarballs combined with binary artifacts (was Re: Backdoor in upstream xz-utils) In-Reply-To: <6e743725-26f0-669c-b088-e56c850110c8@elenq.tech> (Ekaitz Zarraga's message of "Thu, 4 Apr 2024 22:32:10 +0200") References: <87ttkon4c4.fsf@protonmail.com> <8734s1mn5p.fsf@xelera.eu> <87zfu9ku4l.fsf@xelera.eu> <6e743725-26f0-669c-b088-e56c850110c8@elenq.tech> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Duodi 22 Germinal an 232 de la =?utf-8?Q?R=C3=A9volu?= =?utf-8?Q?tion=2C?= jour de la Romaine 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: Wed, 10 Apr 2024 15:57:20 +0200 Message-ID: <87wmp5l3r3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) 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: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -11.14 X-Spam-Score: -11.14 X-Migadu-Queue-Id: 0A4BC528BA X-Migadu-Scanner: mx13.migadu.com X-TUID: ociFdTx9zezb Hi, Ekaitz Zarraga skribis: > On 2024-04-04 21:48, Attila Lendvai wrote: >> all in all, just by following my gut insctincts, i was advodating >> for building everything from git even before the exposure of this >> backdoor. in fact, i found it surprising as a guix newbie that not >> everything is built from git (or their VCS of choice). > > That has happened to me too. > Why not use Git directly always? Because it create{s,d} a bootstrapping issue. The =E2=80=9Cbuiltin:git-download=E2=80=9D method was added only recently to gu= ix-daemon and cannot be assumed to be available yet: https://issues.guix.gnu.org/65866 > In the bootstrapping it's also a problem, as all those tools > (autotools) must be bootstrapped, and they require other programs > (compilers) that actually use them. And we'll be forced to use git, > too, or at least clone the bootstrapping repos, git-archive them > ourselves and host them properly signed. At least, we could challenge > them using git (similar to what we do with the substitutes), which we > cannot do right now with the release tarballs against the actual code > of the repository. I think we should gradually move to building everything from source=E2=80=94i.e., fetching code from VCS and adding Autoconf & co. as in= puts. This has been suggested several times before. The difficulty, as you point out, will lie in addressing bootstrapping issues with core packages: glibc, GCC, Binutils, Coreutils, etc. I=E2=80=99m not sure how t= o do that but=E2=80=A6 > In live-bootstrap they just write the build scripts by hand, and > ignore whatever the ./configure script says. That's also a reasonable > way to tackle the bootstrapping, but it's a hard one. Thankfully, we > are working together in this Bootstrapping effort so we can learn from > them and adapt their recipes to our Guix commencement.scm module. This > would be some effort, but it's actually doable. =E2=80=A6 live-bootstrap can probably be a good source of inspiration to fi= nd a way to build those core packages (or some of them) straight from a VCS checkout. And here the trick will be to find a way to do that in a concise and maintainable way (generating config.h and Makefiles by hand may prove unmaintainable in practice.) Ludo=E2=80=99.