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?

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.