archive mirror
 help / color / mirror / Atom feed
* Using proc in chroot environments
@ 2003-11-02 20:49 DervishD
       [not found] ` <>
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: DervishD @ 2003-11-02 20:49 UTC (permalink / raw)
  To: Linux-kernel

    Hi all :)

    I'm using a chroot environment on my main disk as a 'crash test
dummy', and I need to access the proc filesystem inside it. Since
hard links are not allowed for directories, the only solution I can
think of is to mount proc inside the chroot environment just after
chrooting. This works, I've tested, but I have two problems:

    - Any change in the chroot proc happens too in the main one (like
using /proc/sys/kernel variables). Not a big deal, since I want the
chroot environment to mimic the main filesystem where the original
proc is mounted, but is annoying.

    - I must mount copies of devpts, usbfs, etc... under the 'second'
proc, too, and this is even more annoying.

    The perfect solution for me is to hardlink the proc directory of
the chrooted environment to the proc directory on the true root dir,
but since this is not possible, whan can I do instead of remounting a
second copy of proc (which, by the way, makes /proc/mounts a little
bit weird...)?

    Thanks a lot in advance :))

    Raúl Núñez de Arenas Coronado

Linux Registered User 88736 &

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-11-07 22:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-02 20:49 Using proc in chroot environments DervishD
     [not found] ` <>
2003-11-02 21:40   ` DervishD
2003-11-03  3:10 ` Mark Mielke
2003-11-03  9:49   ` DervishD
2003-11-06 16:00 ` David Gómez
2003-11-07  9:35   ` DervishD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).