4be56c1959
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> |
||
---|---|---|
.. | ||
9p-iov-marshal.c | ||
9p-iov-marshal.h | ||
9p-marshal.c | ||
9p-marshal.h | ||
file-op-9p.h | ||
Makefile.objs | ||
qemu-fsdev-dummy.c | ||
qemu-fsdev-opts.c | ||
qemu-fsdev-throttle.c | ||
qemu-fsdev-throttle.h | ||
qemu-fsdev.c | ||
qemu-fsdev.h | ||
virtfs-proxy-helper.c | ||
virtfs-proxy-helper.texi |