View Single Post
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#18
Originally Posted by Benson View Post
Perhaps the most common use of chroot is on rescue CDs for fixing broken Linux installs, which boot up using an image on the CD, mount your harddrive somewhere, and chroot there. It's also used for running things (daemons, typically) in a "chroot jail", so that any exploits that compromise that service can't propagate upward and compromise the whole machine. A particularly famous instance of that use is in the iPhone, hence the term "jailbroken" for an iPhone from whose chroot jail has been compromised. But it's also used for running similar, but different, systems on the same machine. The kernel has to be the same, since there's only one kernel running, but system libraries can differ.
chroot is very commonly used for exactly what we want to do here, which is running applications from a different variation of the OS. For instance, people who install 64-bit Linux on their desktop machines soon discover that many programs don't work with their OS. So they install a 32-bit version of Linux in a chroot and then they can run both 32-bit and 64-bit applications. That's where I learned how to do the tricks I mention in the linked post above.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!

Last edited by qole; 2008-05-11 at 02:58.