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
This commit is contained in:
Jorik Cronenberg 2022-08-04 14:25:35 +00:00 committed by Git OBS Bridge
parent 30add1cedb
commit 76349528f7
3 changed files with 21 additions and 2 deletions

View File

@ -1,3 +1,21 @@
-------------------------------------------------------------------
Wed Aug 3 13:14:32 UTC 2022 - Jorik Cronenberg <jorik.cronenberg@suse.com>
- 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 <jorik.cronenberg@suse.com>

View File

@ -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 - -

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1bcc216c1bbd72cd737ee6119206121c0313a429492591335130068abcf41201
size 20177
oid sha256:2dc715a9fe0d24480b645af56d8c42e3fa6b3cd0e068542efda9116a64b5baa7
size 20269