DEVFS in a chroot?
Poul-Henning Kamp
phk at phk.freebsd.dk
Fri Apr 30 05:13:42 PDT 2004
In message <348620619.1083334458@[10.122.7.143]>, Eivind Olsen writes:
>Hello.
>
>I'm running some processes in a chroot (not a jail) and I need to have a
>small /dev in the chroot directory containing for example random and
>urandom.
>As I understand it, the recommended way to do this is to use devfs, but I'm
>not sure how to go about doing that.
>
>Should I mount /var/chroot/dev as type devfs?
Yes:
mount -t devfs randomargument /var/chroot/dev
>And I'd need to create some devfs-rulefile?
Only if reducing the contents of that devfs instance.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the freebsd-current
mailing list