]> git.ipfire.org Git - thirdparty/qemu.git/commit
9pfs: local: keep a file descriptor on the shared folder
authorGreg Kurz <groug@kaod.org>
Sun, 26 Feb 2017 22:42:10 +0000 (23:42 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 16 Mar 2017 17:07:03 +0000 (12:07 -0500)
commit54f951d6348f08a89da8b49d64fe06ceb291759f
tree6d2471bbe9c996dc2a5f848ca8276dc0f39734a6
parent984bd0a1b864be48af39539ab152c90bb49a03bd
9pfs: local: keep a file descriptor on the shared folder

This patch opens the shared folder and caches the file descriptor, so that
it can be used to do symlink-safe path walk.

Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit 0e35a3782948c6154d7fafe9a02a86bc130199c7)
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/9pfs/9p-local.c