> How is Devfs behaving towards chroot jailed environments?
> I haven't tried to install one, as a matter of fact I am still using
> old-fashion device file system for an apache server.
> The problem is I must create another /dev entry within a separate directory
> and I don't know how to relate it to devfs .
> What is, so, the current state of things?
>
> Thanks
try the following
mount -t devfs devfs /chroot/dev
this is in addition to your standard /dev tree and seems to work quite
fine. I can not see any reason why it would not. Effectively ( but not
quite ), /dev and /chroot/dev become carbon copies. I mounted /tmp/dev
in this fashion and could successfully eject my cdrom useing both device
trees. it would be interesting if two process' tried to access the
same device through a different tree at the same time though. Could
this be a problem that may need to be addressed?
You will have to play with devfsd.conf if you want different things to
happen within /chroot/dev and /dev. Is it possible to have devices
appear in /dev and not /chroot/dev? etc...
Cheers
Craig
Opinions here are my own and do not reflect those of my employer, Sun
Microsystems.
--
Craig Armour Craig.Armour@xxxxxxxxxxx
Enterprise Systems Administrator Phone: +61 2 9844 7292
Installation Consulting Services 828 Pacific Highway
Sun Microsytems Australia Gordon NSW 2072
|