diff options
author | Pádraig Brady <P@draigBrady.com> | 2014-10-15 18:08:42 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2014-10-16 00:45:32 +0100 |
commit | d520929586ee2063d48359aaaef8f28807604cae (patch) | |
tree | 3922530539173d01e62ae04aedd252d61c3d7ecd /bootstrap | |
parent | 84616da89dbfc81e22f8c2fd077f1d61d788522c (diff) | |
download | coreutils-d520929586ee2063d48359aaaef8f28807604cae.tar.xz |
chroot: call chroot() unconditionally to handle bind mounted "/"
* src/chroot.c (is_root): Adjust to compare canonicalized paths
rather than inodes, to handle (return false in) the case where
we have a tree that is constructed by first bind mounting "/"
(thus having the same inode).
(main): Unconditionally call chroot() because it's safer
and of minimal performance benefit to avoid in this case.
This will cause inconsistency with some platforms
not allowing `chroot / true` for non root users.
* tests/misc/chroot-fail.sh: Adjust appropriately.
* NEWS: Mention the bug fixes.
Fixes http://bugs.gnu.org/18736
Diffstat (limited to 'bootstrap')
0 files changed, 0 insertions, 0 deletions