unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#59202] [PATCH] python-check-manifest: Relax git security settings in tests.
@ 2022-11-11 20:15 Ontje.Luensdorf
  2022-11-19 18:36 ` bug#59202: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Ontje.Luensdorf @ 2022-11-11 20:15 UTC (permalink / raw)
  To: 59202

[-- Attachment #1: Type: text/plain, Size: 215 bytes --]

Hi Guix,

the git security fixes for CVE-2022-39253 break submodule tests in
python-check-manifest. This patch works around the issue by disabling
the security check in the check phase.

Best regards,
Ontje

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-python-check-manifest-Relax-git-security-setting.patch --]
[-- Type: text/x-patch; name="0001-gnu-python-check-manifest-Relax-git-security-setting.patch", Size: 1562 bytes --]

From 3de0d326956fa551a3dad6d65f6fabd9ff4282b3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ontje=20L=C3=BCnsdorf?= <ontje.luensdorf@dlr.de>
Date: Fri, 11 Nov 2022 21:09:21 +0100
Subject: [PATCH] gnu: python-check-manifest: Relax git security settings in
 tests.

* gnu/packages/python-xyz.scm (python-check-manifest)[arguments]:
  Allow git submodule commands via file protocol during testing.
---
 gnu/packages/python-xyz.scm | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e26656fa32..857e4fc207 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -25580,6 +25580,17 @@ (define-public python-check-manifest
     (build-system python-build-system)
     (native-inputs
      (list python-mock git))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         ;; Tests use git submodule commands over the file transport, which
+         ;; has been disabled in git, see CVE-2022-39253. Enable these
+         ;; commands to allow checks to succeed.
+         (add-before 'check 'allow-git-submodule-add
+           (lambda _
+             (setenv "HOME" "/tmp")
+             (invoke "git" "config" "--global"
+                     "protocol.file.allow" "always"))))))
     (home-page "https://github.com/mgedmin/check-manifest")
     (synopsis "Check MANIFEST.in in a Python source package for completeness")
     (description "Python package can include a MANIFEST.in file to help with
-- 
2.38.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#59202: [PATCH] python-check-manifest: Relax git security settings in tests.
  2022-11-11 20:15 [bug#59202] [PATCH] python-check-manifest: Relax git security settings in tests Ontje.Luensdorf
@ 2022-11-19 18:36 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2022-11-19 18:36 UTC (permalink / raw)
  To: Ontje.Luensdorf; +Cc: 59202-done

Hi,

<Ontje.Luensdorf@dlr.de> skribis:

> From 3de0d326956fa551a3dad6d65f6fabd9ff4282b3 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Ontje=20L=C3=BCnsdorf?= <ontje.luensdorf@dlr.de>
> Date: Fri, 11 Nov 2022 21:09:21 +0100
> Subject: [PATCH] gnu: python-check-manifest: Relax git security settings in
>  tests.
>
> * gnu/packages/python-xyz.scm (python-check-manifest)[arguments]:
>   Allow git submodule commands via file protocol during testing.

Good catch.  Applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-19 18:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-11 20:15 [bug#59202] [PATCH] python-check-manifest: Relax git security settings in tests Ontje.Luensdorf
2022-11-19 18:36 ` bug#59202: " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).