qemu/hw/9pfs
Daniel P. Berrange eed968607d hw/9pfs: Remove O_NOATIME flag from 9pfs open() calls in readonly mode
When 2c74c2cb4b added support for
the 'readonly' flag against 9p filesystems, it also made QEMU
add the O_NOATIME flag as a side-effect.

The O_NOATIME flag, however, may only be set by the file owner,
or a user with CAP_FOWNER capability.  QEMU cannot assume that
this is the case for filesytems exported to QEMU.

eg, run QEMU as non-root, and attempt to pass the host OS
filesystem through to the guest OS with readonly enable.
The result is that the guest OS cannot open any files at
all.

If O_NOATIME is really required, it should be optionally
enabled via a separate QEMU command line flag.

 * hw/9pfs/virtio-9p.c: Remove O_NOATIME

Acked-by: M. Mohan Kumar <mohan@in.ibm.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
2012-01-30 10:54:17 +05:30
..
codir.c fix typo: delete redundant semicolon 2011-12-06 09:56:41 +00:00
cofile.c hw/9pfs: Add new security model mapped-file. 2012-01-19 12:21:11 +05:30
cofs.c hw/9pfs: Use export_flag for indicating whether fs driver use path names. 2011-10-15 15:30:27 +05:30
coxattr.c
virtio-9p-coth.c
virtio-9p-coth.h fix spelling in hw sub directory 2011-12-06 09:56:41 +00:00
virtio-9p-device.c hw/9pfs: Add new security model mapped-file. 2012-01-19 12:21:11 +05:30
virtio-9p-handle.c hw/9pfs: Preserve S_ISGID 2012-01-30 10:54:16 +05:30
virtio-9p-local.c hw/9pfs: Preserve S_ISGID 2012-01-30 10:54:16 +05:30
virtio-9p-posix-acl.c configure: fix detection for xattr.h on modern distributions 2011-11-09 12:06:20 -06:00
virtio-9p-proxy.c virtio-9p-proxy: Fix typo causing compile failure on 32 bit hosts 2012-01-06 12:50:44 -06:00
virtio-9p-proxy.h hw/9pfs: Proxy getversion 2012-01-04 20:20:55 +05:30
virtio-9p-synth.c hw/9pfs: Use the correct file descriptor in Fsdriver Callback 2011-12-04 22:35:28 +05:30
virtio-9p-synth.h hw/9pfs: Add synthetic file system support using 9p 2011-10-31 12:34:18 +05:30
virtio-9p-xattr-user.c
virtio-9p-xattr.c
virtio-9p-xattr.h configure: fix detection for xattr.h on modern distributions 2011-11-09 12:06:20 -06:00
virtio-9p.c hw/9pfs: Remove O_NOATIME flag from 9pfs open() calls in readonly mode 2012-01-30 10:54:17 +05:30
virtio-9p.h hw/9pfs: Move pdu_marshal/unmarshal code to a seperate file 2012-01-04 19:51:28 +05:30