From owner-freebsd-questions Mon Feb 11 1:19:37 2002 Delivered-To: freebsd-questions@freebsd.org Received: from relay3-gui.server.ntli.net (relay3-gui.server.ntli.net [194.168.4.200]) by hub.freebsd.org (Postfix) with ESMTP id 0F28737B400 for ; Mon, 11 Feb 2002 01:19:31 -0800 (PST) Received: from pc4-card4-0-cust162.cdf.cable.ntl.com ([80.4.14.162] helo=rhadamanth.private.submonkey.net ident=mailnull) by relay3-gui.server.ntli.net with esmtp (Exim 3.03 #2) id 16aCcQ-0000ia-00; Mon, 11 Feb 2002 09:19:27 +0000 Received: from setantae by rhadamanth.private.submonkey.net with local (Exim 3.34 #1) id 16aCcP-0004my-00; Mon, 11 Feb 2002 09:19:25 +0000 Date: Mon, 11 Feb 2002 09:19:25 +0000 From: Ceri To: Jeff Shevlen Cc: freebsd-questions@FreeBSD.ORG Subject: Re: DNS in sandbox Message-ID: <20020211091925.GA2655@rhadamanth> Mail-Followup-To: Ceri , Jeff Shevlen , freebsd-questions@FreeBSD.ORG References: <011f01c1b297$bf480ae0$b300a8c0@wenk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <011f01c1b297$bf480ae0$b300a8c0@wenk> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 10, 2002 at 05:02:15PM -0800, Jeff Shevlen wrote: > Hi, > > Following the handbook all is well up until: > > " Build a statically linked copy of named-xfer and copy it into the > sandbox " > # cd /usr/src/lib/libisc && make clean all > # cd /usr/src/lib/libbind && make clean all > # cd /usr/src/libexec/named-xfer && make NOSHARED=yes all > # cp named-xfer /etc/namedb/bin && chmod 555 > /etc/namedb/bin/named-xfer > cp: named-xfer is a directory (not copied). > > I am newbie and likely missing something here but (1) the "... (not > copied)" makes complete sense in this context, and (2) I don't see how > copying named-xfer/ (a directory with only a Makefile as it's > contents) into the sandbox will achieve the stated effect of copying a > statically linked copy of named-xfer into the sandbox... > > I'm confused. Me too. I wrote that doc and so far as I can see, it still applies to stable. Here's the contents of my /usr/src/libexec/named-xfer after following the above steps : root@rhadamanth named-xfer# ls -lAsgF total 513 1 -rw-r--r-- 1 root wheel 603 Apr 25 2001 Makefile 8 -rw-r--r-- 1 root wheel 7772 Feb 11 09:14 db_glue.o 432 -rwxr-xr-x 1 root wheel 427196 Feb 11 09:14 named-xfer* 3 -rw-r--r-- 1 root wheel 2777 Feb 11 09:14 named-xfer.8.gz 56 -rw-r--r-- 1 root wheel 57176 Feb 11 09:14 named-xfer.o 6 -rw-r--r-- 1 root wheel 5268 Feb 11 09:14 ns_glue.o 2 -rw-r--r-- 1 root wheel 1887 Feb 11 09:14 pathnames.h 3 -rw-r--r-- 1 root wheel 2440 Feb 11 09:14 tmp_version.c 2 -rw-r--r-- 1 root wheel 1132 Feb 11 09:14 tmp_version.o root@rhadamanth named-xfer# In fact, it sounds like you didn't actually do : cd /usr/src/libexec/named-xfer && make NOSHARED=yes all before issuing the cp command, as from your statement (2), you've tried to copy /usr/src/libexec/named-xfer instead of /usr/src/libexec/named-xfer/named-xfer Ceri -- keep a mild groove on To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message