Received: from list by lists.gnu.org with archive (Exim 4.71) id 1cCrnM-0001NL-EM for mharc-grub-devel@gnu.org; Fri, 02 Dec 2016 12:38:48 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCrnK-0001MJ-Gg for grub-devel@gnu.org; Fri, 02 Dec 2016 12:38:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCrnH-0002gX-Ux for grub-devel@gnu.org; Fri, 02 Dec 2016 12:38:46 -0500 Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]:35453) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cCrnH-0002gP-Ko for grub-devel@gnu.org; Fri, 02 Dec 2016 12:38:43 -0500 Received: by mail-lf0-x233.google.com with SMTP id b14so200280836lfg.2 for ; Fri, 02 Dec 2016 09:38:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=lWRxqbxQ07VDJkyMOjD34zqBqoHIXgVRgAhlp8NiMB4=; b=Shzslftg+82M1Qgq6sGo2wBXbjoMH1MlyM2DoDpoOIcEZvxIbj22w14U31R5Nno4f4 E12qD1AlmEd7s4UnhzF5er6NmLLDM8JZ30pJjnu4vBaviIHpY3XpMda1mGuZ7vIDSRFt TBR/NkJZ7UZZYUQXRNSEKoj/XX8IKqVUVU55jcWKeR3VTr50NRk60uqLm0GXX1L6qlVG 5TAsS6S8e5X/RF5uFgO0aKp7nGr3U8n/xGBMkLuXJq2eLRLS43v0DdKdMi/GTRZaua0u D1TroOvULh4HPz2PtJ8wJivbo0AuxpLG8kSAjVnFwXIRJHFpcZbsMj7uidftRiIHYCmN DxZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=lWRxqbxQ07VDJkyMOjD34zqBqoHIXgVRgAhlp8NiMB4=; b=XwHF4fHRg9wqe+xZV8LQB5lORqfSw3YjH10QnkRZMjHx1rfA+0BdSCVgMHxJ6BNBYn jtSABbUvOr6NfsWxMeSexti1UZLhQud+1cGDMLw0Bq814Kw49hYiUzPhPXcxu4gdWuTf vaI+U23Dzjp7gik6mo2/9tTmyqXbCCrQ816yjO4464Ni8xz5WXhgVSZvgP7AXNgTkuGl fe2cgcWx2mOTmnWZsFMwi8Qw9d+7LxbP3ccbhspvc+VJ4qgjiWN4yo/glgLnP/DeLylt YD7DOjJn6v6npx9kCtECuygVlSSGH7j83tqvE+5dQPN5/DhgyuoYRyIaa2ralScuPW+f Qy3Q== X-Gm-Message-State: AKaTC02z1iT697mvkEUvGSmiwvTeG6vA5+CJnPPZgZ2mMW4A4j6KVyenvK4fGhdRoRSKSg== X-Received: by 10.25.8.6 with SMTP id 6mr13931718lfi.48.1480700321360; Fri, 02 Dec 2016 09:38:41 -0800 (PST) Received: from [192.168.1.44] (ppp109-252-90-110.pppoe.spdop.ru. [109.252.90.110]) by smtp.gmail.com with ESMTPSA id s7sm926441lja.14.2016.12.02.09.38.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Dec 2016 09:38:40 -0800 (PST) Subject: Re: consumer of mtime in grub-mkstandalone.c:add_tar_file To: grub-devel@gnu.org References: <20161202145154.GA8718@aepfle.de> From: Andrei Borzenkov Message-ID: Date: Fri, 2 Dec 2016 20:38:36 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161202145154.GA8718@aepfle.de> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IaKqp6mGpq6QSWHRHTc6mwBWJrK3wFtpW" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::233 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2016 17:38:47 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --IaKqp6mGpq6QSWHRHTc6mwBWJrK3wFtpW Content-Type: multipart/mixed; boundary="VKfhMfwaBngSScCKWCVDhR40PpJH9x1vc" From: Andrei Borzenkov To: grub-devel@gnu.org Message-ID: Subject: Re: consumer of mtime in grub-mkstandalone.c:add_tar_file References: <20161202145154.GA8718@aepfle.de> In-Reply-To: <20161202145154.GA8718@aepfle.de> --VKfhMfwaBngSScCKWCVDhR40PpJH9x1vc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 02.12.2016 17:51, Olaf Hering =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > Who is the consumer of the tar archive generated in util/grub-mkstandal= one.c? It is stored as memory disk inside grub image and $prefix is set to point to it. > Why would that consumer need the current mtime of the added file? Well ... grub itself most likely does not (at least I do not remember any place where grub would depend on it). OTOH grub-mkstandalone provides for including of arbitrary files into archive and these files can be referenced by grub.cfg which also can be added to archive and contain arbitrary code (and theoretically also out-of-tree modules). > It breaks what Debian sells as "reproducible builds". > I think the call to grub_util_get_mtime in add_tar_file should be remov= ed. >=20 I think we could set fake mtime for grub own components (we already fake it in mkimage - STABLE_EMBEDDING_TIMESTAMP). For any additional file I would leave it up to user to set desired mtime in advance. --VKfhMfwaBngSScCKWCVDhR40PpJH9x1vc-- --IaKqp6mGpq6QSWHRHTc6mwBWJrK3wFtpW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlhBsZ0ACgkQR6LMutpd94xxlwCeKE2Dx5/SaqiJK5wGTblqONxX j9YAoK9ln0GWVDm8asQQANI39+tZEe9s =3jHk -----END PGP SIGNATURE----- --IaKqp6mGpq6QSWHRHTc6mwBWJrK3wFtpW--