GNU bug report logs -
#68622
[PATCH 2/2] services: knot-resolver: Use default DNSSEC trust anchors.
Previous Next
Reported by: Leo Nikkilä <hello <at> lnikki.la>
Date: Sat, 20 Jan 2024 21:27:03 UTC
Severity: normal
Tags: patch
Done: Dale Mellor <guix-devel-0brg6a <at> rdmp.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 68622 in the body.
You can then email your comments to 68622 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#68622
; Package
guix-patches
.
(Sat, 20 Jan 2024 21:27:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Leo Nikkilä <hello <at> lnikki.la>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sat, 20 Jan 2024 21:27:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/services/dns.scm (%kresd.conf): Use default anchors.
(knot-resolver-activation): Install default anchors when missing.
---
gnu/services/dns.scm | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/gnu/services/dns.scm b/gnu/services/dns.scm
index 6608046909..f83c5b6594 100644
--- a/gnu/services/dns.scm
+++ b/gnu/services/dns.scm
@@ -655,7 +655,6 @@ (define-record-type* <knot-resolver-configuration>
(define %kresd.conf
(plain-file "kresd.conf" "-- -*- mode: lua -*-
-trust_anchors.add_file('/var/cache/knot-resolver/root.keys')
net = { '127.0.0.1', '::1' }
user('knot-resolver', 'knot-resolver')
modules = { 'hints > iterate', 'stats', 'predict' }
@@ -676,10 +675,20 @@ (define %knot-resolver-accounts
(define (knot-resolver-activation config)
#~(begin
(use-modules (guix build utils))
- (let ((rundir "/var/cache/knot-resolver")
- (owner (getpwnam "knot-resolver")))
+ (let* ((rundir "/var/cache/knot-resolver")
+ (keyfile (string-append rundir "/root.keys"))
+ (owner (getpwnam "knot-resolver")))
(mkdir-p rundir)
- (chown rundir (passwd:uid owner) (passwd:gid owner)))))
+ (chown rundir (passwd:uid owner) (passwd:gid owner))
+
+ ;; Install initial trust anchors when missing.
+ (unless (file-exists? keyfile)
+ (copy-file #$(file-append (knot-resolver-configuration-package
+ config)
+ "/etc/knot-resolver/root.keys")
+ keyfile)
+ (chown keyfile (passwd:uid owner) (passwd:gid owner))
+ (chmod keyfile #o755)))))
(define knot-resolver-shepherd-services
(match-lambda
--
2.41.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#68622
; Package
guix-patches
.
(Tue, 23 Apr 2024 16:24:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 68622 <at> debbugs.gnu.org (full text, mbox):
This patch belongs to issue 68621, closing this one.
bug closed, send any further explanations to
68622 <at> debbugs.gnu.org and Leo Nikkilä <hello <at> lnikki.la>
Request was from
Dale Mellor <guix-devel-0brg6a <at> rdmp.org>
to
control <at> debbugs.gnu.org
.
(Tue, 23 Apr 2024 16:25:05 GMT)
Full text and
rfc822 format available.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#68622
; Package
guix-patches
.
(Tue, 23 Apr 2024 17:47:16 GMT)
Full text and
rfc822 format available.
Message #13 received at 68622 <at> debbugs.gnu.org (full text, mbox):
This patch belongs to issue 68621, closing here.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 22 May 2024 11:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.