named in sandbox
Nelis Lamprecht
nelis at 8ball.co.za
Fri May 21 05:01:04 PDT 2004
On Fri, 2004-05-21 at 13:16, Matthew Seaman wrote:
> However, remember that's written netbsd-centrically, and you'll have
> to adapt the instructions for use under FreeBSD -- use ports instead
> of pkgsrc, and you'll need to investigate what to do to make devfs(8)
> create the requited device nodes under the chroot, rather than using
> mknod.
>
You can simply symlink the device nodes:
guardian# ls -la /var/chroot/named/dev/
total 4
drwxr-xr-x 2 bind bind 512 Mar 3 11:21 .
drwx------ 5 bind bind 512 Mar 3 11:18 ..
lrwxr-xr-x 1 root bind 9 Mar 3 11:21 null -> /dev/null
lrwxr-xr-x 1 root bind 11 Mar 3 11:21 random -> /dev/random
lrwxr-xr-x 1 root bind 9 Mar 3 11:21 zero -> /dev/zero
Cheers,
--
Nelis Lamprecht
PGP: http://www.8ball.co.za/pgpkey/nelis.asc
"Unix IS user friendly.. It's just selective about who its friends are."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040521/612c2e24/attachment.bin
More information about the freebsd-questions
mailing list