]> git.proxmox.com Git - mirror_qemu.git/commit
export/fuse: Pass default_permissions for mount
authorMax Reitz <mreitz@redhat.com>
Fri, 25 Jun 2021 14:23:12 +0000 (16:23 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 9 Jul 2021 10:26:05 +0000 (12:26 +0200)
commit2c7dd057aa7bd7a875e9b1a53975c220d6380bc4
tree38e92d88bf97d121a165c3dd090007389fffe479
parentc2615bdfbd6d5a1a48438102f8ab328fe30b8e27
export/fuse: Pass default_permissions for mount

We do not do any permission checks in fuse_open(), so let the kernel do
them.  We already let fuse_getattr() report the proper UNIX permissions,
so this should work the way we want.

This causes a change in 308's reference output, because now opening a
non-writable export with O_RDWR fails already, instead of only actually
attempting to write to it.  (That is an improvement.)

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20210625142317.271673-2-mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/export/fuse.c
tests/qemu-iotests/308
tests/qemu-iotests/308.out