qemu-irix/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
9p-local.c 9pfs: local: clarify fchmodat_nofollow() implementation 2017-09-05 17:56:58 +02:00
9p-local.h
9p-posix-acl.c
9p-proxy.c
9p-proxy.h
9p-synth.c
9p-synth.h
9p-util.c
9p-util.h 9pfs: local: fix fchmodat_nofollow() limitations 2017-08-10 14:36:11 +02:00
9p-xattr-user.c
9p-xattr.c
9p-xattr.h
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
Makefile.objs 9pfs: fix dependencies 2017-08-30 18:23:25 +02:00
codir.c
cofile.c
cofs.c
coth.c
coth.h
coxattr.c
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
xen-9p-backend.c xen-9pfs: disconnect if buffers are misconfigured 2017-06-29 15:11:51 +02:00
xen-9pfs.h