George wrote:
> Non-working:
> 'ls' in /mnt/foo overmounted.
> stat("blah") = /mnt/foo/blah (That directory is different now.)
Very good. Now all you have to do is to find a passage in POSIX 1003.1
that supports or at least allows the interpretation that "foo" means
"path to cwd plus \"foo\"" (instead of "./foo"). I wish you luck ;-)
BTW, while we're at it:
Process A (user) Process B (root)
chroot("/jail"); chdir("/");
mount("/dev/secretstuff","/jail");
open("wargames/access-codes"); /* grr */
open("./wargames/access-codes"); /* yeah ! */
Unlikely, but certainly a lot of fun when it happens ...
- Werner
-- _________________________________________________________________________ / Werner Almesberger, ICA, EPFL, CH werner.almesberger@ica.epfl.ch / /_IN_N_032__Tel_+41_21_693_6621__Fax_+41_21_693_6610_____________________/- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue Mar 07 2000 - 21:00:21 EST