Source: debianutils
Source-Version: 4.3
Severity: normal

Hi,

ischroot currently fails on Linux if run as non-root, but it can be
made to work by using /proc/1/mountinfo and /proc/self/mountinfo
instead which can be read by any user.

This file is documented in:
  <http://kernel.org/doc/Documentation/filesystems/proc.txt>

If outside a chroot both mountinfo files will be equal and as such the
/ mount ID will be equal, if inside a chroot /proc/self/mountinfo will
either have no entry for / or will have an entry (if it's a distinct
mount point) but will have a different mount ID from the one in PID 1.

regards,
guillem



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to