Bug#670119: debianutils: ischroot can be made to work as non-root on Linux

2012-04-24 Thread Clint Adams
On Mon, Apr 23, 2012 at 08:28:43AM +0200, Guillem Jover wrote: 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

Bug#670119: debianutils: ischroot can be made to work as non-root on Linux

2012-04-23 Thread Guillem Jover
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: