From 76349528f75342074de01c68562fd9a3f2791d945b3c8d858b38f71940032ca7 Mon Sep 17 00:00:00 2001 From: Jorik Cronenberg Date: Thu, 4 Aug 2022 14:25:35 +0000 Subject: [PATCH] Accepting request 992780 from home:jcronenberg:branches:network - When enabling query_logging by un-commenting an example in bind.conf, named attempts to create a file in /var/log which fails due to missing credentials. This also applies to the "dump-file" and the "statistics-file". This is solved by having systemd-tmpfiles create a subdirectory "/var/log/named" owned by named:named and changing the file paths accordingly: /var/log/named_querylog -> /var/log/named/querylog /var/log/named_dump.db -> /var/log/named/dump.db /var/log/named.stats -> /var/log/named/stats Also, in "named.service", the ReadWritePath was changed to include "/var/log/named" rather than just "var/log". [bsc#1200685, bind.conf, vendor-files/config/named.conf, vendor-files/system/named.service] OBS-URL: https://build.opensuse.org/request/show/992780 OBS-URL: https://build.opensuse.org/package/show/network/bind?expand=0&rev=353 --- bind.changes | 18 ++++++++++++++++++ bind.conf | 1 + vendor-files.tar.bz2 | 4 ++-- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/bind.changes b/bind.changes index fb2eb02..0658b82 100644 --- a/bind.changes +++ b/bind.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Wed Aug 3 13:14:32 UTC 2022 - Jorik Cronenberg + +- When enabling query_logging by un-commenting an example in + bind.conf, named attempts to create a file in /var/log which + fails due to missing credentials. This also applies to the + "dump-file" and the "statistics-file". + This is solved by having systemd-tmpfiles create a subdirectory + "/var/log/named" owned by named:named and changing the file + paths accordingly: + /var/log/named_querylog -> /var/log/named/querylog + /var/log/named_dump.db -> /var/log/named/dump.db + /var/log/named.stats -> /var/log/named/stats + Also, in "named.service", the ReadWritePath was changed to + include "/var/log/named" rather than just "var/log". + [bsc#1200685, bind.conf, vendor-files/config/named.conf, + vendor-files/system/named.service] + ------------------------------------------------------------------- Mon Aug 1 11:15:42 UTC 2022 - Jorik Cronenberg diff --git a/bind.conf b/bind.conf index c386e31..dd41d81 100644 --- a/bind.conf +++ b/bind.conf @@ -8,3 +8,4 @@ C /var/lib/named/127.0.0.zone - - - - - C /var/lib/named/localhost.zone - - - - - C /var/lib/named/named.root.key - - - - - C /var/lib/named/root.hint - - - - - +d /var/log/named 750 named named - - diff --git a/vendor-files.tar.bz2 b/vendor-files.tar.bz2 index 927d6f1..4bdc981 100644 --- a/vendor-files.tar.bz2 +++ b/vendor-files.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1bcc216c1bbd72cd737ee6119206121c0313a429492591335130068abcf41201 -size 20177 +oid sha256:2dc715a9fe0d24480b645af56d8c42e3fa6b3cd0e068542efda9116a64b5baa7 +size 20269