qemu-e2k/fsdev
Greg Kurz 4be56c1959 fsdev: fix virtfs-proxy-helper cwd
Since chroot() doesn't change the current directory, it is indeed a good
practice to chdir() to the target directory and then then chroot(), or
to chroot() to the target directory and then chdir("/").

The current code does neither of them actually. Let's go for the latter.

This doesn't fix any security issue since all of this takes place before
the helper begins to process requests.

Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
2017-05-25 10:30:13 +02:00
..
9p-iov-marshal.c fsdev: don't allow unknown format in marshal/unmarshal 2017-05-25 10:30:13 +02:00
9p-iov-marshal.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
9p-marshal.c 9pfs: drop useless v9fs_string_null() function 2016-09-16 08:56:15 +02:00
9p-marshal.h 9pfs: fsdev: drop useless extern annotation for functions 2016-10-17 14:13:58 +02:00
file-op-9p.h fsdev: add IO throttle support to fsdev devices 2017-02-28 10:31:46 +01:00
Makefile.objs fsdev: add IO throttle support to fsdev devices 2017-02-28 10:31:46 +01:00
qemu-fsdev-dummy.c 9p/fsdev: remove obsolete references to virtio 2016-06-06 11:52:34 +02:00
qemu-fsdev-opts.c throttle: factor out duplicate code 2017-02-28 10:31:46 +01:00
qemu-fsdev-throttle.c fsdev: add IO throttle support to fsdev devices 2017-02-28 10:31:46 +01:00
qemu-fsdev-throttle.h fsdev: add IO throttle support to fsdev devices 2017-02-28 10:31:46 +01:00
qemu-fsdev.c 9p/fsdev: remove obsolete references to virtio 2016-06-06 11:52:34 +02:00
qemu-fsdev.h 9p/fsdev: remove obsolete references to virtio 2016-06-06 11:52:34 +02:00
virtfs-proxy-helper.c fsdev: fix virtfs-proxy-helper cwd 2017-05-25 10:30:13 +02:00
virtfs-proxy-helper.texi fsdev: spelling fix 2016-06-07 18:02:49 +03:00