qemu-e2k/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
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
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
virtio-9p-xattr-user.c
virtio-9p-xattr.c
virtio-9p-xattr.h
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