From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7342481464494129152 X-Received: by 2002:a4a:91ce:0:b0:5a0:c203:d86b with SMTP id e14-20020a4a91ce000000b005a0c203d86bmr7576740ooh.1.1709554685276; Mon, 04 Mar 2024 04:18:05 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a4a:341c:0:b0:5a1:11a7:5d2c with SMTP id b28-20020a4a341c000000b005a111a75d2cls2228360ooa.0.-pod-prod-02-us; Mon, 04 Mar 2024 04:18:04 -0800 (PST) X-Received: by 2002:a05:6830:2693:b0:6e4:afed:9871 with SMTP id l19-20020a056830269300b006e4afed9871mr87255otu.3.1709554684842; Mon, 04 Mar 2024 04:18:04 -0800 (PST) Received: by 2002:a05:6808:2191:b0:3c1:c8fb:b600 with SMTP id 5614622812f47-3c1ce44fb5fmsb6e; Mon, 4 Mar 2024 02:37:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IEzvq2IJa6KNBjIDHdvcTA6LBxCwqxx5QGu5jWF45KLnlvYbTf53LqtLeuFJdQ74q0C2D2L X-Received: by 2002:a17:902:d503:b0:1dc:dfb7:a6e0 with SMTP id b3-20020a170902d50300b001dcdfb7a6e0mr9305842plg.50.1709548677920; Mon, 04 Mar 2024 02:37:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709548677; cv=none; d=google.com; s=arc-20160816; b=efx0+DyzEf9wsuPf9TezA90NUUQfjbCB95GMJwOPPBOG66TJR8vicZx8ZwN7b7+yMD wZiFd+lGqCK8PhNa42IgHcYPQT2l9V3Kww5TzTDHFs38f+UXlk2Vvn9AFG9zN3nmzhVw PErfq6Oq+eeBQYrhuk6ozAv80/nrzwbRxy68l0/YPtKAqXm12uSIj5hAVn6F+DU2pMPl PTYfWgZEpjhl6BGDllsZiJBGUJqHdGMvuD7IZbSt4Qsko0OXEIQFhio1B1IcfoSl6FD2 9uMNWvhGa0uai27J585rjE0MLAFJEkdtUP6xE/U8eGioj+Vnbd0R+Ihg4JN9f0+4iZtl z2DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=/qDfqpG0BmLFME/4UaNW/VaBIC5oUX/c+w+mb57uK9E=; fh=RYZmcCXJcirvewR08yWj1ALPTeL/uhrF1yW+EUNwYhk=; b=HKuujx/NbBP+dvE2Rj9iHj6grarbPdIZJ13uMXSIULZ4cnhstDUHlDIz4RJTFMaVE8 RCrwKGhFdc/RpHW4z6k2H9a7KfgsMpci7VWZnhRVtz/Hs7gWtgzwj8riraz4jVV/R0Sy yNaib7DXMQDVM51JvJQm4gdPImZ/djaTwIPWemThFIXevh3WLJUytKQBwxb0a2nzdLkf 3KI3L/br2Mct0N7y/0ddvElr/jw++AdQUpDexc2V4Al+oWA1PY1W/UXZOd/atTT+pje/ Lu1Wek3xTlrYTgD7fQ99Nr6MAUhYUsJ6syCtK56eQch7u3YV4JMv7hih65XHsDBkqsRd PQIA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of adithya.balakumar@toshiba-tsip.com designates 210.130.202.132 as permitted sender) smtp.mailfrom=Adithya.Balakumar@toshiba-tsip.com Return-Path: Received: from mo-csw.securemx.jp (mo-csw1121.securemx.jp. [210.130.202.132]) by gmr-mx.google.com with ESMTPS id o19-20020a170903211300b001d8e76e7179si679796ple.3.2024.03.04.02.37.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 02:37:57 -0800 (PST) Received-SPF: pass (google.com: domain of adithya.balakumar@toshiba-tsip.com designates 210.130.202.132 as permitted sender) client-ip=210.130.202.132; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of adithya.balakumar@toshiba-tsip.com designates 210.130.202.132 as permitted sender) smtp.mailfrom=Adithya.Balakumar@toshiba-tsip.com Received: by mo-csw.securemx.jp (mx-mo-csw1121) id 424AbtWS3513980; Mon, 4 Mar 2024 19:37:55 +0900 X-Iguazu-Qid: 2rWgYo6Flid2u6UafJ X-Iguazu-QSIG: v=2; s=0; t=1709548675; q=2rWgYo6Flid2u6UafJ; m=XN+02cELatN7uvTjbqcVPWjr6KOlipWsikKSWP0YVaI= Received: from imx12-a.toshiba.co.jp ([38.106.60.135]) by relay.securemx.jp (mx-mr1123) id 424AbsaR3566466 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 4 Mar 2024 19:37:55 +0900 From: Adithya Balakumar To: isar-users@googlegroups.com, amikan@ilbers.de Cc: jan.kiszka@siemens.com, kazuhiro3.hayashi@toshiba.co.jp, dinesh.kumar@toshiba-tsip.com, shivanand.kunijadar@toshiba-tsip.com, sai.sathujoda@toshiba-tsip.com, adithya.balakumar@toshiba-tsip.com Subject: [PATCH 0/2] Fix reproducibility of /etc/shadow file when image built on different days Date: Mon, 4 Mar 2024 16:07:14 +0530 X-TSB-HOP2: ON Message-Id: <20240304103716.1100116-1-Adithya.Balakumar@toshiba-tsip.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 04 Mar 2024 10:37:53.0474 (UTC) FILETIME=[0354AA20:01DA6E20] X-TUID: qmKeeTvYlkAt The third field in the /etc/shadow file (sp_lstchg) contains the date of the last password change expressed as the number of days since Jan 1, 1970. As this is a relative time, creating a user today will result in: username:17238:0:99999:7::: whilst creating the same user tomorrow will result in: username:17239:0:99999:7::: This impacts reproducibility of images when built on different days. Since /etc/shadow honours SOURCE_DATE_EPOCH, this patchset makes the SOURCE_DATE_EPOCH variable available when the /etc/shadow file is created/modified. Adithya Balakumar (2): isar-bootstrap.inc: Export SOURCE_DATE_EPOCH variable image-account-extension.bbclass: Export SOURCE_DATE_EPOCH variable meta/classes/image-account-extension.bbclass | 5 +++++ meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 4 ++++ 2 files changed, 9 insertions(+) -- 2.39.2