qemu-irix/hw/9pfs
Aneesh Kumar K.V a6fc2cd986 hw/9pfs: use O_NOFOLLOW for mapped readlink operation
With mapped security models like mapped-xattr and mapped-file, we save the
symlink target as file contents. Now if we ever expose a normal directory
with mapped security model and find real symlinks in export path, never
follow them and return proper error.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
(cherry picked from commit aed858ce10)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2013-06-11 16:45:59 -05:00
..
Makefile.objs Remove libhw 2012-10-05 16:07:49 -05:00
codir.c misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
cofile.c misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
cofs.c misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
coxattr.c misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
virtio-9p-coth.c misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
virtio-9p-coth.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
virtio-9p-device.c virtio: remove the function pointer. 2013-04-24 11:50:20 -05:00
virtio-9p-handle.c hw: move headers to include/ 2013-04-08 18:13:10 +02:00
virtio-9p-local.c hw/9pfs: use O_NOFOLLOW for mapped readlink operation 2013-06-11 16:45:59 -05:00
virtio-9p-posix-acl.c hw: move headers to include/ 2013-04-08 18:13:10 +02:00
virtio-9p-proxy.c hw: move headers to include/ 2013-04-08 18:13:10 +02:00
virtio-9p-proxy.h hw/9pfs: Proxy getversion 2012-01-04 20:20:55 +05:30
virtio-9p-synth.c hw: move headers to include/ 2013-04-08 18:13:10 +02:00
virtio-9p-synth.h janitor: add guards to headers 2012-12-19 08:31:31 +01:00
virtio-9p-xattr-user.c hw: move headers to include/ 2013-04-08 18:13:10 +02:00
virtio-9p-xattr.c hw: move headers to include/ 2013-04-08 18:13:10 +02:00
virtio-9p-xattr.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
virtio-9p.c hw/9pfs: Fix segfault with 9p2000.u 2013-06-11 16:39:23 -05:00
virtio-9p.h virtio-9p: cleanup: QOM casts. 2013-04-23 10:37:49 -05:00