Message ID | 20240306061423.1088541-1-Adithya.Balakumar@toshiba-tsip.com |
---|---|
Headers | show
Return-Path: <isar-users+bncBCTYRMFATULBBLMTUCXQMGQECFRNA4Y@googlegroups.com> Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Wed, 06 Mar 2024 07:14:12 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-oa1-f57.google.com (mail-oa1-f57.google.com [209.85.160.57]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 4266EBHZ006597 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <iupwgm@isar-build.org>; Wed, 6 Mar 2024 07:14:12 +0100 Received: by mail-oa1-f57.google.com with SMTP id 586e51a60fabf-21e61f157b9sf5813421fac.0 for <iupwgm@isar-build.org>; Tue, 05 Mar 2024 22:14:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709705645; cv=pass; d=google.com; s=arc-20160816; b=vqllVGe2xSeyCtdIT6C2nQ7nZF+aIZAy00MwVb0FZPur/0p9rB8qd6Q1ht3NVKbeoi 3z8Qph5t1tntexMfHybF9xlNZWjHsMo9IsIHylFT5vNBiA8bwG7lAkaAL/ICq5bdeKtV oNCoapW5VV1ZRjTID3zzJxZNqRbVwkUCXq3unVuHU/rtBLB69zoTCFsAe4U/q9qt7hy7 TF3H3U0lqxbU2nnR64faf2bG5pSnEWdKhqK5HNCq+8KvoaTa8wTHfDbPp6h2VzpWi1el vClDBdS1LCSks8kyhudVq2+hGRqH0VNRmEZlct7OLbse4/812sSXG26fL29VFDACaKMi PGnw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=kpFmQI4XW9vgR1yvRLDpFeXMJavJe0uHZppTuvUms/I=; fh=4flotVXLDMemk4eEaNHCg1w7NIob0UtTFbVZU89zaC0=; b=kgiEntFLdN+yXNdw9mDXDvRYX0ya4V8CYg7FGP/8zHOx4rfIeVSnuGpL9hXHGwk+L1 u8Ma0vQM7KOoT0vDemeXUKZJ8FMACxnfOYoP/nR1+Z/86asCbUlf8kDWzre/LrweFTxN 1jx0dU5bSOy5l5br7ZDadT96T0q9v5+LF3aQ7hCPl3PeNu1eyvSz6GTXBL89fFlVQEGL Ya8TfQOgQsRhxU3OhfYXkN90d5MVRmQjYboD3HziJlsPHGLHOF/vLBNjp72bGFU6KdbN 4hIOzJBrnHUUScT+WQ07m93QHgA7nUpWmkKEpgpKfplgac2ZEOsKKHlB+Z5DCkH5toMn pdhg==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of adithya.balakumar@toshiba-tsip.com designates 210.130.202.152 as permitted sender) smtp.mailfrom=Adithya.Balakumar@toshiba-tsip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1709705645; x=1710310445; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=kpFmQI4XW9vgR1yvRLDpFeXMJavJe0uHZppTuvUms/I=; b=aQJhV3E7YvIbFzt+dOG31opA5eii4JbiNRVo1Evycwsj2+QM1X/R/hQCjptHUpQoti s2TxyrqO/WbKJ4ceBYKGA0JoEDa2iB3rcraiFZ/PTpQslvrb4WdW+PDKDvkQKf3g8eVi IEraiDnOuCgimhxBeIsNEm32LuONTdfdoiA4fIbY55bUZH6P+XZQX2s9uIWRrIIcb1Yz b+gA5YGSOq+PfFfoqddm/OOMU1xJdTY7PABqzNc3WwOcNm2DUWg7aohXq1EuHu6Ea5jb 0R6TQ+vBH6AgubLKfxsf5dzbSGyiBPMPGiiVQtCzNcDQcdzT0buNFwIxjJnS2ljmCY6Y 5hhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709705645; x=1710310445; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=kpFmQI4XW9vgR1yvRLDpFeXMJavJe0uHZppTuvUms/I=; b=iEtGuGrz5nULZgjN6isCVRYuXwd2Gpg1QsIP0Gj770Zld1jo1OviBZRzK3PLWRJIEU L5D6v6/OHs3o6crdWpgPqxMbybcjws7+05PZLPJVKVu7EAKPmk662ogtpBYSqWhGWi1N 4HTKxGhJSABveIPJRSE9k4i+xwN08DMzMEZVebC4xkekWuHLUie4wiHUgVafWwOc8LcU qJ24ISwYjhBCytUrlch+RNQ0MQ5NqibdFsLBdvC8uIVx11een7yJcrJm6u1b84M8x92t 2ACBUuaq2UUcH3dN/z4aieiAECkH75Q+DYM0BdtxXZr360/0lsXPoBs2mIwsNscUYeuT iKHg== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCU/G47jjE6eCppk6kMxQ1qPwo91Qh/NQs+TBrRW2jQfhA+No4CNM48WF82DLrJfKvgg2gPwFfLbo8z27SwM2LkYtAveINg= X-Gm-Message-State: AOJu0YxQCApcmPO76aPncAQHgGSMKuB300b7MbjqWnIa4xz8IjmWl/ZN k+moTfWI5C3tHRJiliUc3rPDh1bwzS0WrUOvrByINJRd6YfcWli0 X-Google-Smtp-Source: AGHT+IGJTywwKrzC/zxdQKQsGhb48t1xUxXj0uNVoavMTrZujBDTLID14lxUY14/wGlYzPSic7kFUQ== X-Received: by 2002:a05:6870:2491:b0:221:225b:a6f2 with SMTP id s17-20020a056870249100b00221225ba6f2mr4255976oaq.20.1709705645502; Tue, 05 Mar 2024 22:14:05 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6870:72c8:b0:220:894d:3e80 with SMTP id o8-20020a05687072c800b00220894d3e80ls639534oak.1.-pod-prod-05-us; Tue, 05 Mar 2024 22:14:04 -0800 (PST) X-Received: by 2002:a05:6358:52cf:b0:17c:2b7e:a5df with SMTP id z15-20020a05635852cf00b0017c2b7ea5dfmr3691689rwz.13.1709705644474; Tue, 05 Mar 2024 22:14:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709705644; cv=none; d=google.com; s=arc-20160816; b=Fek/m9UcpeJOu69mKqdzr8QFgrkyps+fpoPoOXUsFMlgJJEEHOaSoEjGfufHjQwrj5 kGDbbWCN6mJZx0Ex2AC/oypBMbUFVy1i4ZRHgaNwO2aQxKSKIiIXByR4+IRHW8frkYXO /AXm/ufkCQVFpvTXBFv5DYn9orBvhGZXjGEiQYanomk4NUbUW/Gus11OLhUmQL6lNdm+ Az2T7uvWvA7zsR/py69hjDg+gVq07UoHB4w72oAmXXiWY+gPFwYn4KSTLyZkL1zetR1G gEZVIARhMl2RiQkFGNucsLgYqldn4Hxc6KCWBebJv1zpwVTIEfil0Zj1ssSFh7Rs5Cv0 Jmtg== 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=9U1437pEnYgPbADOE5sCjLTiML9B+4mlQbom0CBBTqE=; fh=K/mZt3pelG5XhoKo7NmnVKDkBr0U6QSPt5Hs4miWPTI=; b=juv6TT0jmXNzO1j1yN3tG+nRAsWD/QISH70blh0tsEe9D4PfPOOPUPPKys5RW2ppxL y/XmrOuOn5KSs57uNO0sOVb0wG2l67HlT5oxMgdBNoE+F1dQVz5WrW5khHxDItWlDxmU FSfuj82tgvrjlxlhknkcammHn5m/53Tohdbp/UvdWLNEUuUUcD0rdV8CSC/CWDVJgls4 SfawIqJu6cfNQRkrA5Kew8sHQY2TYwmTfoAEwjDV3DghA0Ysj5DP6xgF8xWOnTqtTlDD H+RSlpWP36A+SM4a8pE5MHVK/3vc3Gg5Np8x2erMyDhPgz2eHhBMH9OuIukZCTJXDOMq zbrA==; 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.152 as permitted sender) smtp.mailfrom=Adithya.Balakumar@toshiba-tsip.com Received: from mo-csw.securemx.jp (mo-csw1802.securemx.jp. [210.130.202.152]) by gmr-mx.google.com with ESMTPS id el2-20020ad459c2000000b006900279cce5si909998qvb.3.2024.03.05.22.14.03 for <isar-users@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 22:14:04 -0800 (PST) Received-SPF: pass (google.com: domain of adithya.balakumar@toshiba-tsip.com designates 210.130.202.152 as permitted sender) client-ip=210.130.202.152; Received: by mo-csw.securemx.jp (mx-mo-csw1802) id 4266E1E43343950; Wed, 6 Mar 2024 15:14:01 +0900 X-Iguazu-Qid: 2yAaYKYb3j55dVW6o4 X-Iguazu-QSIG: v=2; s=0; t=1709705640; q=2yAaYKYb3j55dVW6o4; m=iOTGZuGT+YzTyOOey9fkUDi4mhBizjEJkrTM963cdBY= Received: from imx2-a.toshiba.co.jp (imx2-a.toshiba.co.jp [106.186.93.35]) by relay.securemx.jp (mx-mr1800) id 4266E0o43191482 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 6 Mar 2024 15:14:00 +0900 From: Adithya Balakumar <Adithya.Balakumar@toshiba-tsip.com> To: isar-users@googlegroups.com, amikan@ilbers.de Cc: 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 v2 0/2] Fix reproducibility of /etc/shadow file when image built on different days Date: Wed, 6 Mar 2024 11:44:21 +0530 X-TSB-HOP2: ON Message-Id: <20240306061423.1088541-1-Adithya.Balakumar@toshiba-tsip.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-OriginalArrivalTime: 06 Mar 2024 06:13:58.0417 (UTC) FILETIME=[79BA3810:01DA6F8D] X-Original-Sender: adithya.balakumar@toshiba-tsip.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of adithya.balakumar@toshiba-tsip.com designates 210.130.202.152 as permitted sender) smtp.mailfrom=Adithya.Balakumar@toshiba-tsip.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: <isar-users.googlegroups.com> X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: <https://groups.google.com/group/isar-users/post>, <mailto:isar-users@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:isar-users+help@googlegroups.com> List-Archive: <https://groups.google.com/group/isar-users List-Subscribe: <https://groups.google.com/group/isar-users/subscribe>, <mailto:isar-users+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+914930254986+unsubscribe@googlegroups.com>, <https://groups.google.com/group/isar-users/subscribe> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= |
Series |
Fix reproducibility of /etc/shadow file when image built on different days
|
expand
|
On Wed, 2024-03-06 at 11:44 +0530, Adithya Balakumar wrote: > 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. > > Changes in v2: > - Replaced "! -z" with "-n" while checking for value of > SOURCE_DATE_EPOCH > - Handle failure if bitbake var for SOURCE_DATE_EPOCH is empty > > 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 | 4 ++++ > meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 4 ++++ > 2 files changed, 8 insertions(+) > > -- > 2.39.2 > > Applied to next, thanks.