From patchwork Thu Apr 25 15:54:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 63362 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 23AD427BBEC; Thu, 25 Apr 2024 16:58:57 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 21F9A27BBE2 for ; Thu, 25 Apr 2024 16:58:56 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s01UI-0000sx-Ah; Thu, 25 Apr 2024 11:58:18 -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 1s01UF-0000sU-Iu for guix-patches@gnu.org; Thu, 25 Apr 2024 11:58:15 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s01UE-00035Z-V2 for guix-patches@gnu.org; Thu, 25 Apr 2024 11:58:14 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s01UW-00078A-In for guix-patches@gnu.org; Thu, 25 Apr 2024 11:58:32 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70569] [PATCH 2/3] gnu: nss: Graft with version 3.98 [security fixes]. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 Apr 2024 15:58:32 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70569 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70569@debbugs.gnu.org Cc: john.kehayias@protonmail.com, Maxim Cournoyer Received: via spool by 70569-submit@debbugs.gnu.org id=B70569.171406065026771 (code B ref 70569); Thu, 25 Apr 2024 15:58:32 +0000 Received: (at 70569) by debbugs.gnu.org; 25 Apr 2024 15:57:30 +0000 Received: from localhost ([127.0.0.1]:33127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s01TM-0006w6-Lw for submit@debbugs.gnu.org; Thu, 25 Apr 2024 11:57:28 -0400 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]:55784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s01SG-0006ii-LU for 70569@debbugs.gnu.org; Thu, 25 Apr 2024 11:56:24 -0400 Received: by mail-qk1-x735.google.com with SMTP id af79cd13be357-790605809cbso85878085a.3 for <70569@debbugs.gnu.org>; Thu, 25 Apr 2024 08:55:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714060549; x=1714665349; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vzIMD86nCHAvpaNMSERVLroZEb9eDbw5S5WjGkM6fNM=; b=aQ65pT8hig15aL7MWn11uvwtfdsleTkzWfRfTaupMZJlBTqVNEGt2M18d0l++k1ZdB FH1/C0breblj3nC7nlOx9aFffuZ1+jMNh70F7JytPsvKBTO2n3tmlZmGT1HRyYKxaoKu 2WeALprhv3PTcvZwRFc0RhlvFY2Yw5gDF/x7vIqeC9yJiPQHl9MO3N0+DDzCPz/O8ZLX NhTpYnn9/WozMa6LMciIMIoW0M4FXuNqUhCUvftkOUY358ioe830xi5lK0o1sumzMerU dEj1LFpoqavalEplpMoqjq58myunn0zIgcI2ucFRRwSS9sB9IZyikZZrD0MIeUqWzJbi s2/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714060549; x=1714665349; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vzIMD86nCHAvpaNMSERVLroZEb9eDbw5S5WjGkM6fNM=; b=QUK2Njtb8qi1zH9aXnCvFq5R2XiGlm1o4jnObe2dZmUtFDpBihHpDuYf93JguewWJF vYjAoGOE+VgO2BGl9ejYMRWhij2deACdFbzeu/VDagfxKS49mauqnmZqBUs4+1JGUNyR YPNG3W+yHn6np+qKSzGR7dNY5bFpOlpi5Agw2SWnzIJb1OxunTDbMNf1B+CAuZxYsB95 SSgu4DcQPs+GHvC8GlfuocFZhUOu6L4R4Xp8zux5CM2Mk8MKJAHP7dLK8APBwMoF+O0R GDvw9IOl452vNscQP1xhKHYJZyOWjU9SGVXXUKo+e6JQ8QqoHRx4tVBUs94Si5TpTjF2 K6Uw== X-Gm-Message-State: AOJu0YxyWaKGa7p/qnn9uQTsKnWVZ8bwbe0wC2EjBBwuoXKRndWctZW3 +s31npWZX09e3dlkh/+LigKcwhT+4Ipn6OmS1S+svpDnIRcnj6MDaXTtYg== X-Google-Smtp-Source: AGHT+IFW0nsVuASOka/u8m7yaKqfwFSdgFVkvPieqQnG52vSitK48RaYE43egMXPFA4SXguLnGlINg== X-Received: by 2002:a05:620a:40c3:b0:790:a727:8f60 with SMTP id g3-20020a05620a40c300b00790a7278f60mr559889qko.9.1714060548711; Thu, 25 Apr 2024 08:55:48 -0700 (PDT) Received: from localhost.localdomain (dsl-205-233-124-191.b2b2c.ca. [205.233.124.191]) by smtp.gmail.com with ESMTPSA id xx24-20020a05620a5d9800b0078f1583f724sm6464519qkn.59.2024.04.25.08.55.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 08:55:48 -0700 (PDT) From: Maxim Cournoyer Date: Thu, 25 Apr 2024 11:54:29 -0400 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches This fixes CVE-2023-5388, CVE-2023-6135 and CVE-2024-0743. * gnu/packages/nss.scm (nss) [replacement]: New field. (nss-3.98): Rename variable to... (nss/fixed): ... this. Make it a hidden package. * gnu/packages/librewolf.scm (librewolf) [inputs]: Replace nss-3.98 with nss/fixed. Change-Id: I8cc667c53a270dfe00738bf731923f1342036624 --- gnu/packages/librewolf.scm | 2 +- gnu/packages/nss.scm | 71 ++++++++++++++++++++------------------ 2 files changed, 38 insertions(+), 35 deletions(-) diff --git a/gnu/packages/librewolf.scm b/gnu/packages/librewolf.scm index 87b76c661f..1717bad0b5 100644 --- a/gnu/packages/librewolf.scm +++ b/gnu/packages/librewolf.scm @@ -581,7 +581,7 @@ (define-public librewolf mesa mit-krb5 nspr - nss-3.98 + nss/fixed pango pciutils pipewire diff --git a/gnu/packages/nss.scm b/gnu/packages/nss.scm index a2843be17a..8f6ed06e63 100644 --- a/gnu/packages/nss.scm +++ b/gnu/packages/nss.scm @@ -110,6 +110,7 @@ (define-public nss ;; version and source to avoid a top-level variable reference & module ;; cycle. (version "3.88.1") + (replacement nss/fixed) (source (origin (method url-fetch) (uri (let ((version-with-underscores @@ -248,38 +249,40 @@ (define-public nss security standards.") (license license:mpl2.0))) -(define-public nss-3.98 - (package - (inherit nss) - (version "3.98") - (source (origin - (inherit (package-source nss)) - (uri (let ((version-with-underscores - (string-join (string-split version #\.) "_"))) - (string-append - "https://ftp.mozilla.org/pub/mozilla.org/security/nss/" - "releases/NSS_" version-with-underscores "_RTM/src/" - "nss-" version ".tar.gz"))) - (sha256 - (base32 - "1kh98amfklrq6915n4mlbrcqghc3srm7rkzs9dkh21jwscrwqjgm")))) - (arguments - (substitute-keyword-arguments (package-arguments nss) - ((#:phases phases) - #~(modify-phases #$phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (if tests? - (begin - ;; Use 127.0.0.1 instead of $HOST.$DOMSUF as HOSTADDR for - ;; testing. The latter requires a working DNS or /etc/hosts. - (setenv "DOMSUF" "localdomain") - (setenv "USE_IP" "TRUE") - (setenv "IP_ADDRESS" "127.0.0.1") +(define-public nss/fixed + (let ((actual-version "3.98")) + (hidden-package + (package + (inherit nss) + (version (string-append actual-version ".0")) ;for grafts requirements + (source (origin + (inherit (package-source nss)) + (uri (let ((version-with-underscores + (string-join (string-split actual-version #\.) "_"))) + (string-append + "https://ftp.mozilla.org/pub/mozilla.org/security/nss/" + "releases/NSS_" version-with-underscores "_RTM/src/" + "nss-" actual-version ".tar.gz"))) + (sha256 + (base32 + "1kh98amfklrq6915n4mlbrcqghc3srm7rkzs9dkh21jwscrwqjgm")))) + (arguments + (substitute-keyword-arguments (package-arguments nss) + ((#:phases phases) + #~(modify-phases #$phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (if tests? + (begin + ;; Use 127.0.0.1 instead of $HOST.$DOMSUF as HOSTADDR for + ;; testing. The latter requires a working DNS or /etc/hosts. + (setenv "DOMSUF" "localdomain") + (setenv "USE_IP" "TRUE") + (setenv "IP_ADDRESS" "127.0.0.1") - ;; The "PayPalEE.cert" certificate expires every six months, - ;; leading to test failures: - ;; . To - ;; work around that, set the time to roughly the release date. - (invoke "faketime" "2024-01-23" "./nss/tests/all.sh")) - (format #t "test suite not run~%")))))))))) + ;; The "PayPalEE.cert" certificate expires every six months, + ;; leading to test failures: + ;; . To + ;; work around that, set the time to roughly the release date. + (invoke "faketime" "2024-01-23" "./nss/tests/all.sh")) + (format #t "test suite not run~%"))))))))))))