Pádraig Brady
d520929586
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
2014-10-16 00:45:32 +01:00
..
2014-07-13 14:23:09 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2009-08-25 09:21:00 +02:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-09-19 11:24:05 +01:00
2014-10-16 00:45:32 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-10-15 02:19:48 +01:00
2014-01-02 22:19:59 +01:00
2014-09-08 20:48:44 -07:00
2014-09-08 20:48:44 -07:00
2014-09-08 20:48:44 -07:00
2014-09-19 11:24:05 +01:00
2014-01-02 22:19:59 +01:00
2008-11-20 10:21:52 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-01-02 22:19:59 +01:00
2014-10-02 02:34:48 +02:00
2014-09-19 11:24:05 +01:00
2014-09-19 13:02:49 -07:00
2014-04-17 20:52:19 +01:00
2014-09-19 11:24:05 +01:00
2014-01-02 22:19:59 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-08-23 01:23:20 +01:00
2014-08-22 12:07:38 -07:00
2014-01-02 22:19:59 +01:00
2014-09-19 11:24:05 +01:00
2005-07-18 07:52:37 +00:00
2011-07-15 10:55:04 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-09-19 11:24:05 +01:00
2014-10-07 16:47:37 -07:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-07-04 01:54:45 +02:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-10 23:53:36 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-10 23:46:54 +01:00
2014-09-19 11:24:05 +01:00
2014-01-02 22:19:59 +01:00
2014-09-19 11:24:05 +01:00
2012-01-09 21:51:59 +01:00
2014-09-08 20:48:44 -07:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-24 11:48:22 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-10-07 16:47:37 -07:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-04-16 23:34:42 +01:00
2014-01-02 22:19:59 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-07-01 15:45:53 +01:00
2014-01-02 22:20:08 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-10-07 16:47:37 -07:00
2014-09-19 11:24:05 +01:00
2014-09-23 09:08:34 +01:00
2014-09-23 09:11:14 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-01-02 22:19:59 +01:00
2014-10-08 12:48:51 +01:00
2014-10-07 16:47:37 -07:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2007-07-10 19:00:00 +02:00
2007-07-10 19:00:00 +02:00
2014-09-19 11:24:05 +01:00
2012-01-09 21:51:59 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-10-07 16:47:37 -07:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00
2014-09-19 11:24:05 +01:00