named: /var/run/named isn't being created with correct permissions
authorPhilip Prindeville <redacted>
Mon, 26 May 2025 03:20:25 +0000 (21:20 -0600)
committerNoah Meyerhans <redacted>
Tue, 27 May 2025 13:52:49 +0000 (09:52 -0400)
It needs to be group writable or session.key can't be written once
named drops privileges.

Signed-off-by: Philip Prindeville <redacted>
net/bind/Makefile
net/bind/files/named.init

index ee055249552c80b9848efafadfff7a2537a7413e..71dafc2a24ea24cf4ab0513f652af008b5fbae4b 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=bind
 PKG_VERSION:=9.20.9
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 USERID:=bind=57:bind=57
 
 PKG_MAINTAINER:=Noah Meyerhans <frodo@morgul.net>
index 288d8f88545e6176f83f9871c1635ffbcf3789d7..12df71efe9e2dba00789716a3c888fbcf0ace564 100644 (file)
@@ -13,6 +13,7 @@ named_options_file=/etc/bind/named-rndc.conf
 rndc_conf_file=/etc/bind/rndc.conf
 pid_file=/var/run/named/named.pid
 
+rundir=$(dirname $pid_file)
 logdir=/var/log/named/
 cachedir=/var/cache/bind
 libdir=/var/lib/bind
@@ -21,7 +22,7 @@ dyndir=/tmp/bind
 conf_local_file=$dyndir/named.conf.local
 
 fix_perms() {
-    for dir in $libdir $logdir $cachedir $dyndir; do
+    for dir in $rundir $libdir $logdir $cachedir $dyndir; do
        test -e "$dir" || {
             mkdir -p "$dir"
             chgrp bind "$dir"
git clone https://git.99rst.org/PROJECT