Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Dec 2012 23:39:17 GMT
From:      brian haug <brian.r.haug@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/174816: nsupdate -l doesn't work when named runs chroot
Message-ID:  <201212292339.qBTNdHSH018056@red.freebsd.org>
Resent-Message-ID: <201212292340.qBTNe0ME040759@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         174816
>Category:       bin
>Synopsis:       nsupdate -l doesn't work when named runs chroot
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 29 23:40:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     brian haug
>Release:        9.0
>Organization:
n/a
>Environment:
FreeBSD vb-router 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
When running nsupdate -l it reports:
can't read key from /var/run/named/session.key
>How-To-Repeat:
Set named_enable="YES" in /etc/rc.conf, reboot, issue the command nsupdate -l
>Fix:
--- /etc/rc.d/named.orig	2012-12-29 17:28:22.000000000 -0500
+++ /etc/rc.d/named	2012-12-29 17:55:47.000000000 -0500
@@ -92,8 +92,11 @@
 #
 make_symlinks()
 {
-	checkyesno named_symlink_enable &&
+	if checkyesno named_symlink_enable 
+	then
 	    ln -fs "${named_chrootdir}${pidfile}" ${pidfile}
+	    ln -fs "${named_chrootdir}/var/run/named/session.key" "/var/run/named/session.key"
+	fi
 }
 
 named_poststart () {


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212292339.qBTNdHSH018056>