guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#42381] [PATCH 0/3] 'reconfigure' disallows downgrades by default


From: Ludovic Courtès
Subject: [bug#42381] [PATCH 0/3] 'reconfigure' disallows downgrades by default
Date: Thu, 16 Jul 2020 00:15:06 +0200

Hello!

This patch series changes ‘guix system reconfigure’ so that it errors
out when attempting to downgrade the system, which could (re)introduce
security vulnerability and/or cause problems with stateful services
(we experienced the latter a couple of weeks ago on berlin.guix.gnu.org
actually).  Having this sanity check is pretty much a prerequisite for
unattended upgrades IMO (patch coming soon!).

It works by comparing the commits shown by ‘guix describe’ to those
shown by ‘guix system describe’, essentially.  Apart from that, it
is similar to what ‘guix pull’ does.  There’s a bit of redundancy
with code in ‘guix pull’, but that seemed unavoidable (it’s mostly
UI stuff).

Thoughts?

Thanks,
Ludo’.

Ludovic Courtès (3):
  git: Factorize 'resolve-reference'.
  git: 'update-cached-checkout' has a new #:check-out? parameter.
  guix system: 'reconfigure' disallows downgrades by default.

 doc/guix.texi                       | 35 +++++++++--
 guix/git.scm                        | 90 ++++++++++++++------------
 guix/scripts/system.scm             | 15 ++++-
 guix/scripts/system/reconfigure.scm | 97 ++++++++++++++++++++++++++++-
 4 files changed, 192 insertions(+), 45 deletions(-)

-- 
2.27.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]