It needs to be group writable or session.key can't be written once
named drops privileges.
Signed-off-by: Philip Prindeville <redacted>
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>
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
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"