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

While running kernel 2.6.26 or newer it's possible to get the path of the current chroot jail by comparing the mountinfo of the current process and the init process. Is there a way to get the same information with kernel <2.6.26?

share|improve this question
Is it ok to require root permissions? (Not that this related thread turned up anything that would help you.) – Gilles Aug 29 '12 at 23:05
@Gilles: Sure, it might still be usable. – l0b0 Aug 29 '12 at 23:10

Your Answer


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

Browse other questions tagged or ask your own question.