mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
pki: Always make /etc/guix/acl world-readable.
Fixes guix/guix#664. This is necessary when running ‘guix-daemon’ as an unprivileged user and also when running ‘guix weather’ as an unprivileged user. * guix/pki.scm (ensure-acl): Make ‘%acl-file’ #o644. * guix/scripts/archive.scm (authorize-key): Likewise. * guix/ssh.scm (remote-authorize-signing-key): Likewise. Change-Id: I3c979b2cdf52e7cb657d8fafa244c58854e7fb67
This commit is contained in:
parent
bd963ec99d
commit
38e82ca727
3 changed files with 9 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2013, 2014, 2016, 2022 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2013-2014, 2016, 2022, 2025 Ludovic Courtès <ludo@gnu.org>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -87,7 +87,8 @@ element in KEYS must be a canonical sexp with type 'public-key'."
|
|||
(with-atomic-file-output %acl-file
|
||||
(lambda (port)
|
||||
(write-acl (public-keys->acl (list public-key))
|
||||
port)))))))
|
||||
port)))
|
||||
(chmod %acl-file #o644)))))
|
||||
|
||||
(define (write-acl acl port)
|
||||
"Write ACL to PORT in canonical-sexp format."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue