From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AKbRHjtGs2KcaQEAbAwnHQ (envelope-from ) for ; Wed, 22 Jun 2022 18:41:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sI/JHjtGs2I/VQAA9RJhRA (envelope-from ) for ; Wed, 22 Jun 2022 18:41:31 +0200 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 2D4233E7ED for ; Wed, 22 Jun 2022 18:41:31 +0200 (CEST) Received: from localhost ([::1]:54192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o43Q1-00052G-VX for larch@yhetil.org; Wed, 22 Jun 2022 12:41:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o43Pj-00051z-J8 for guix-devel@gnu.org; Wed, 22 Jun 2022 12:41:11 -0400 Received: from xavier.telenet-ops.be ([2a02:1800:120:4::f00:14]:40046) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o43Ph-0002GS-C7 for guix-devel@gnu.org; Wed, 22 Jun 2022 12:41:11 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by xavier.telenet-ops.be with bizsmtp id mGh32700z4UW6Th01Gh4dw; Wed, 22 Jun 2022 18:41:04 +0200 Message-ID: <0a25973586385016444d80508ab076ae5673d5bc.camel@telenet.be> Subject: Re: Time namespace for build sandbox (was Re: Set FORCE_SOURCE_DATE=1 by default) From: Maxime Devos To: Zhu Zihao , guix-devel@gnu.org Date: Wed, 22 Jun 2022 18:41:03 +0200 In-Reply-To: <86v8ss681p.fsf@163.com> References: <87bkv0f52g.fsf@contorta> <86v8ss681p.fsf@163.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-rTzLXl1IkZNjO8/0+2u4" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1655916064; bh=8JEbTOtbjMXXN3Yb4NcL/Ot9DVATWZ3500KntVYRuUE=; h=Subject:From:To:Date:In-Reply-To:References; b=mEYF3CW+34YX44ncUhbxfgCtNXw2io7h+X80stWNgu/HvtrTyd6DOOBZ6C31SE+mS RqGjLq6tNJxnEPzosbKlrFsaolCnNs7HAvajSe2oAKfzc1oW3P/YnTTPM4PwUVmIG6 w9HdngxJaO/dnHEXhIeoT9vXnbjRrr5BgQsnb3T2m9Ni0tMYFVvZXy2PoDM0wluswZ iKoIDGlZ3P1wVp0LAfpPmImoXd/YxgrWAg2vRIJaAGqlL3s9jWurL3Cr9P1ZUw5a7r 0+RCwKp9N/yecHZ1Q/YMb5ASoWR1DlK+5G7VsPOGMxSW39JAHN9M378T/w7mDbQ/8U x2BZ2hy+Ddidg== Received-SPF: pass client-ip=2a02:1800:120:4::f00:14; envelope-from=maximedevos@telenet.be; helo=xavier.telenet-ops.be X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655916091; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=8JEbTOtbjMXXN3Yb4NcL/Ot9DVATWZ3500KntVYRuUE=; b=cxfQ2uW582sVY5aR0So39+7EgR1xxFTBiKcy5FNR51wPJ0EI2MszGKoXVzZXh0qaJLgTvu bhHGuXbtnZOD72OoMdh8Zzrcl0n7LG7CP90+XW/zW7FLoBe+Bz1Ip93E98rNCJlq6RLqa4 AY6ocxXNI2xb2g8cl1KA6XAK2DtpgRwrtO3JaAK6+Sp38L013o1R14C1G5/GiuCSfnn2oH cQ92qYZrtUJqPuwWQMqzTltOzWy66hL10Exw4gjjPAEVRvLYkbWFLfCSmQ9dZmEStBI+hZ Aprlm91TuoClriGZ4VwzGI8I6NRfE6Cf8w1l1SHgol6WU0zrl0F5pu0WQULMRg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655916091; a=rsa-sha256; cv=none; b=O7rh1UgEWtBPS2oRGDRLfv6zFXH3Kiqt8D4HyZ0hD91LKIUMK6WGBPOlXMTPLTS04Mk0Qa g+6E2YgSMOMnQIo94A1IqnWL2ZscOQjYY3fM25y9Cl1ol0eLnwrhRraP3GheDz+cDN4X0a CgJTxhBeEtNsfirjU7GH/YT4WTXd+dBeRgT0fC73YIW45KOKu3tUAmWs74mF75b6wqH9/P kokS8atDei7g8/W4srmiVfiwdUenMSzXqZQ76eg3igt/hcOa5qKMXGqxV54Gk4tGVVqzIO IHoHCdx7cCtiEkAoRbMnumx6uT6HsWnh5ojMrMsa48R9ckBzj8Cczga08OmEgQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=telenet.be header.s=r22 header.b=mEYF3CW+; dmarc=pass (policy=none) header.from=telenet.be; 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" X-Migadu-Spam-Score: -11.06 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=telenet.be header.s=r22 header.b=mEYF3CW+; dmarc=pass (policy=none) header.from=telenet.be; 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" X-Migadu-Queue-Id: 2D4233E7ED X-Spam-Score: -11.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: fX34LRvikf0T --=-rTzLXl1IkZNjO8/0+2u4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Zhu Zihao schreef op wo 22-06-2022 om 23:16 [+0800]: >=20 > Can we make some experiments on the Linux time namespace for build > sandbox? >=20 > This can mock the real system with our desired value, maybe a good > solution for the reproduciblity on Linux machine. >=20 > Ref: https://man7.org/linux/man-pages/man7/time_namespaces.7.html There are some comments on time namespace at . Unfortunately, it only accepts offsets in a limited range, so you can't just reset the clock to 1970. There was also some talk on avoiding the no-CLOCK_REALTIME problem at with syscall rewriting. Greetings, Maxime. --=-rTzLXl1IkZNjO8/0+2u4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYrNGHxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7iCUAQCuDBnn5j2k6XQt1sjRj3BihRyQ BDZf7/iFQxr7izAPNAD/cvFOSCzvupm55Kjw6OJTBF4CGoP1ZKc7wtraJp9nqAY= =mcq4 -----END PGP SIGNATURE----- --=-rTzLXl1IkZNjO8/0+2u4--