Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
  1. If the host has the kernel drivers properly loaded, would the chrooted enviroment be able to use them (ex. wireless, power)?
  2. Does the chrooted enviroment need its Xorg drivers to be configured or does it just need Xorg drivers from the host?
share|improve this question
up vote 2 down vote accepted

Chroot is a very limited mechanism with poor isolation between the chrooted environment and the host. In fact, other than filesystem confinement due to modified root directory there is no other isolation at all. In particular all drivers compiled and loaded into the kernel are shared between the host and the chrooted environment. Note however that chrooted environment may be unable to access devices when /dev, /sys or /proc in the chrooted environment are different from host and don't include all the necessary files and/or device nodes.

share|improve this answer
will Xorg be shared? – ArchHaskeller Jan 8 '12 at 0:11
You need to make sure that all files used by your Xorg are accessible under chroot environment. This can be done by copying or better by creating appropriate hardlinks (not symlinks). This will very likely include the UNIX-domain socket on which clients talk to the X server (note that you can create hardlinks to UNIX-domain socket normally). Check documentation, config files, strace output or simply error messages to find out the list of files you need to take care of. – Adam Zalcman Jan 8 '12 at 0:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.