From: Maxime Devos <maximedevos@telenet.be>
To: 55399@debbugs.gnu.org
Cc: "André Batista" <nandre@riseup.net>,
"Maxime Devos" <maximedevos@telenet.be>
Subject: bug#55399: [PATCH 1/2] guix: Disable owner validation.
Date: Sun, 28 Aug 2022 12:58:26 +0200 [thread overview]
Message-ID: <20220828105827.26161-1-maximedevos@telenet.be> (raw)
In-Reply-To: <Yn53d4GR+kohZh/b@andel>
The original patch disabled it only when updating cached checkouts, but the
disabling persisted afterwards, making it stateful. To avoid statefulness, it
is disabled during with-libgit2 instead.
For compatibility with guile-git versions that do not yet have
set-owner-validation!, the setting is skipped when set-owner-validation! does
not exist.
* guix/git.scm (update-cached-checkout): Disable owner validation checks.
Co-Authored-By: André Batista <nandre@riseup.net>
---
guix/git.scm | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/guix/git.scm b/guix/git.scm
index 53e7219c8c..0fe6e65549 100644
--- a/guix/git.scm
+++ b/guix/git.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2021 Kyle Meyer <kyle@kyleam.com>
;;; Copyright © 2021 Marius Bakke <marius@gnu.org>
;;; Copyright © 2022 Maxime Devos <maximedevos@telenet.be>
+;;; Copyright © 2022 André Batista <nandre@riseup.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -23,6 +24,7 @@
(define-module (guix git)
#:use-module (git)
#:use-module (git object)
+ #:use-module (git settings)
#:use-module (git submodule)
#:use-module (guix i18n)
#:use-module (guix base32)
@@ -117,6 +119,16 @@ (define-syntax-rule (with-libgit2 thunk ...)
;; but pointer finalizers used in guile-git may be called after shutdown,
;; resulting in a segfault. Hence, let's skip shutdown call for now.
(libgit2-init!)
+ ;; libgit2@1.4.3 ‘fixed’ a git CVE it never shared, breaking some uses
+ ;; of Guix channels (see <https://issues.guix.gnu.org/55399>). Disable
+ ;; the owner validation that does not fit in the security model in Guix.
+ ;;
+ ;; For compatibility with old guile-git that do not have
+ ;; 'set-owner-validation!', do nothing if 'set-owner-validation!'
+ ;; does not exist.
+ ((catch 'unbound-variable
+ (lambda () set-owner-validation!)
+ (lambda _ identity)) #false)
(unless %certificates-initialized?
(honor-system-x509-certificates!)
(set! %certificates-initialized? #t))
base-commit: d519305d83d08058e4def2c4d72fe62102d9599d
prerequisite-patch-id: 62949e6148bb8aae2f792aaf4d54f2a136351d28
prerequisite-patch-id: 72191ec47cb3876c5fcd6233880dea7dfc1b165f
prerequisite-patch-id: bbfd96d673e491ddd684e8270c90347547dceaa5
prerequisite-patch-id: fbdac7446d0c3f529f313f89cb9ba975d469d7ac
prerequisite-patch-id: d0a5804a92d868c5ee6726e6e0555a8af25e442c
--
2.37.1
next prev parent reply other threads:[~2022-08-28 10:59 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-13 15:21 bug#55399: guix system reconfigure fails on channel validation André Batista
2022-05-13 15:26 ` Maxime Devos
2022-05-13 15:28 ` Maxime Devos
2022-05-18 17:38 ` bug#55399: Temporary fix André Batista
2022-05-23 14:18 ` bug#55399: guix system reconfigure fails on channel validation Ludovic Courtès
2022-05-24 1:44 ` André Batista
2022-05-24 23:44 ` André Batista
2023-02-03 3:48 ` André Batista
2022-08-28 10:44 ` Maxime Devos
2022-08-28 10:58 ` Maxime Devos [this message]
2022-08-28 10:58 ` bug#55399: [PATCH 2/2] gnu: guile-git: Add patches to support owner validation, and use libgit2@1.4.3 Maxime Devos
2022-08-28 11:02 ` bug#55399: [PATCH 1/2] guix: Disable owner validation Maxime Devos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220828105827.26161-1-maximedevos@telenet.be \
--to=maximedevos@telenet.be \
--cc=55399@debbugs.gnu.org \
--cc=nandre@riseup.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.