qemu-e2k/hw/9pfs
Greg Kurz aa5e85a108 9pfs: local: clarify fchmodat_nofollow() implementation
Since fchmodat(2) on Linux doesn't support AT_SYMLINK_NOFOLLOW, we have to
implement it using workarounds. There are two different ways, depending on
whether the system supports O_PATH or not.

In the case O_PATH is supported, we rely on the behavhior of openat(2)
when passing O_NOFOLLOW | O_PATH and the file is a symbolic link. Even
if openat_file() already adds O_NOFOLLOW to the flags, this patch makes
it explicit that we need both creation flags to obtain the expected
behavior.

This is only cleanup, no functional change.

Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
2017-09-05 17:56:58 +02:00
..
9p-handle.c 9pfs: assume utimensat() and futimens() are present 2017-05-25 10:30:14 +02:00
9p-local.c 9pfs: local: clarify fchmodat_nofollow() implementation 2017-09-05 17:56:58 +02:00
9p-local.h 9pfs: local: open/opendir: don't follow symlinks 2017-02-28 11:21:15 +01:00
9p-posix-acl.c 9pfs: local: lremovexattr: don't follow symlinks 2017-02-28 11:21:15 +01:00
9p-proxy.c 9pfs: proxy: assert if unmarshal fails 2017-03-21 09:12:47 +01:00
9p-proxy.h
9p-synth.c 9pfs: replace g_malloc()+memcpy() with g_memdup() 2017-06-29 15:11:50 +02:00
9p-synth.h 9pfs: fsdev: drop useless extern annotation for functions 2016-10-17 14:13:58 +02:00
9p-util.c 9pfs: local: simplify file opening 2017-05-25 10:30:14 +02:00
9p-util.h 9pfs: local: fix fchmodat_nofollow() limitations 2017-08-10 14:36:11 +02:00
9p-xattr-user.c 9pfs: local: lremovexattr: don't follow symlinks 2017-02-28 11:21:15 +01:00
9p-xattr.c 9pfs: xattr: fix memory leak in v9fs_list_xattr 2017-04-10 09:38:05 +02:00
9p-xattr.h 9pfs: local: lremovexattr: don't follow symlinks 2017-02-28 11:21:15 +01:00
9p.c 9pfs: avoid sign conversion error simplifying the code 2017-09-05 14:01:16 +02:00
9p.h virtio-9p: break device if buffers are misconfigured 2017-06-29 15:11:51 +02:00
codir.c 9pfs: use coroutine_fn annotation in hw/9pfs/co*.[ch] 2016-10-17 14:13:58 +02:00
cofile.c fsdev: add IO throttle support to fsdev devices 2017-02-28 10:31:46 +01:00
cofs.c 9pfs: use coroutine_fn annotation in hw/9pfs/co*.[ch] 2016-10-17 14:13:58 +02:00
coth.c
coth.h 9pfs: use coroutine_fn annotation in hw/9pfs/co*.[ch] 2016-10-17 14:13:58 +02:00
coxattr.c 9pfs: use coroutine_fn annotation in hw/9pfs/co*.[ch] 2016-10-17 14:13:58 +02:00
Makefile.objs 9pfs: fix dependencies 2017-08-30 18:23:25 +02:00
trace-events docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00
virtio-9p-device.c virtio-9p: break device if buffers are misconfigured 2017-06-29 15:11:51 +02:00
virtio-9p.h 9pfs: introduce transport specific callbacks 2017-01-03 17:28:44 +01:00
xen-9p-backend.c xen-9pfs: disconnect if buffers are misconfigured 2017-06-29 15:11:51 +02:00
xen-9pfs.h xen/9pfs: introduce Xen 9pfs backend 2017-04-25 11:04:28 -07:00