How can one detect being in a chroot jail without root privileges? Assume a standard BSD or Linux system. The best I came up with was to look at the inode value for \"/\"
If you entered the chroot with schroot, then you can check the value of $debian_chroot.