devfs
[Top] [All Lists]

Re: Chroot question

To: Ernesto CEDILLO-ARIAS <ollidec@xxxxxxxxxxxxx>
Subject: Re: Chroot question
From: Craig Armour <craig.armour@xxxxxxxxxxx>
Date: Tue, 15 May 2001 11:07:22 +1000
Cc: devfs@xxxxxxxxxxx
Organization: Sun Microsystems
References: <5.1.0.14.2.20010514133640.009d1480@pop.myrealbox.com>
Sender: owner-devfs@xxxxxxxxxxx
> 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

<Prev in Thread] Current Thread [Next in Thread>