Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Feb 2002 09:19:25 +0000
From:      Ceri <setantae@submonkey.net>
To:        Jeff Shevlen <jshevlen@passedpawn.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: DNS in sandbox
Message-ID:  <20020211091925.GA2655@rhadamanth>
In-Reply-To: <011f01c1b297$bf480ae0$b300a8c0@wenk>
References:  <011f01c1b297$bf480ae0$b300a8c0@wenk>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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