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)
committerGreg Kurz <groug@kaod.org>
Tue, 28 Feb 2017 10:21:15 +0000 (11:21 +0100)
commit0e35a3782948c6154d7fafe9a02a86bc130199c7
treefeefe47a09ae7f80004613465021acae759013c9
parent6482a961636d66cc10928dde5d4d908206e5f65a
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>
hw/9pfs/9p-local.c