From nobody@FreeBSD.org  Tue Apr 10 11:38:18 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 46C3537B42C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 Apr 2001 11:38:18 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f3AIcI170185;
	Tue, 10 Apr 2001 11:38:18 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200104101838.f3AIcI170185@freefall.freebsd.org>
Date: Tue, 10 Apr 2001 11:38:18 -0700 (PDT)
From: dpelleg+bsd@cs.cmu.edu
To: freebsd-gnats-submit@FreeBSD.org
Subject: incomplete named sandbox information
X-Send-Pr-Version: www-1.0

>Number:         26488
>Category:       conf
>Synopsis:       incomplete named sandbox information
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 10 11:40:01 PDT 2001
>Closed-Date:    Mon Dec 13 18:39:03 GMT 2004
>Last-Modified:  Mon Dec 13 18:39:03 GMT 2004
>Originator:     Dan Pelleg
>Release:        4.3-RC2
>Organization:
>Environment:
FreeBSD p 4.3-RC FreeBSD 4.3-RC #3: Fri Apr  6 05:56:31 EDT 2001 root@k:/usr/obj/usr/src/sys/P i386
>Description:
The sandbox sequence described in /etc/namedb/named.conf is not likely
to result in a working configuration. Further, neither logging nor ndc control
will work for it.

>How-To-Repeat:
less /etc/namedb/named.conf
>Fix:
--- named.conf.orig     Tue Apr 10 14:24:23 2001
+++ named.conf  Tue Apr 10 14:33:55 2001
@@ -96,6 +96,15 @@
 //     mkdir /etc/namedb/s
 //     chown bind.bind /etc/namedb/s
 //     chmod 750 /etc/namedb/s
+//     (copy the contents of /etc/namedb/ to /etc/namedb/s/etc/namedb/)
+//
+// Note that running named in a sandbox will prevent it from logging to
+// syslogd(8) and will prevent the ndc(8) commands from working.
+// To enable logging to the system logger:
+// mkdir -p /etc/namedb/s/var/run
+// and add "-l /etc/namedb/s/var/run/log" to syslogd_flags in /etc/rc.conf.
+// To use ndc, create /etc/namedb/s/var/run and either invoke ndc as
+// "ndc -c /etc/namedb/s/var/run/ndc", or
+// symlink /etc/namedb/s/var/run/ndc to /var/run and use ndc as usual.
 
 /*
 zone "domain.com" {

>Release-Note:
>Audit-Trail:

From: David Malone <dwmalone@maths.tcd.ie>
To: dpelleg+bsd@cs.cmu.edu
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: conf/26488: incomplete named sandbox information
Date: Sun, 15 Apr 2001 14:13:59 +0100

 > The sandbox sequence described in /etc/namedb/named.conf is not likely
 > to result in a working configuration. Further, neither logging nor ndc control
 > will work for it.
 
 We use bind in almost exactly the configuration you mention, though
 I also make a symlink for the pid file too. I note, however, that
 syslogging works fine in this setup (since syslog(3) doesn't write
 files directly but sends messages via the socket /var/run/log to
 syslogd).
 
 Other than that the change looks like a good idea.
 
 	David.
Responsible-Changed-From-To: freebsd-bugs->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Sun Jun 30 19:01:49 PDT 2002 
Responsible-Changed-Why:  

Borrow this so I don't forget about it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26488 
State-Changed-From-To: open->feedback 
State-Changed-By: dougb 
State-Changed-When: Sun Nov 28 12:36:38 GMT 2004 
State-Changed-Why:  

Does the new named chroot configuration in 6-current 
and RELENG_5 meet your needs? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26488 
State-Changed-From-To: feedback->closed 
State-Changed-By: dougb 
State-Changed-When: Mon Dec 13 18:38:31 GMT 2004 
State-Changed-Why:  

Originator reported on 28 November in private mail that it is 
OK to close this PR.  

http://www.freebsd.org/cgi/query-pr.cgi?pr=26488 
>Unformatted:
