summaryrefslogtreecommitdiffstats
path: root/fs/vboxsf
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2024-03-19 12:32:04 -0400
committerHans de Goede <hdegoede@redhat.com>2024-04-03 16:06:39 +0200
commit1ece2c43b88660ddbdf8ecb772e9c41ed9cda3dd (patch)
tree7b5efe0050e215e596445849dfee35c0882c3632 /fs/vboxsf
parent0141d68f86d78953fb4c3983d666e92f7df4a43d (diff)
downloadlinux-1ece2c43b88660ddbdf8ecb772e9c41ed9cda3dd.tar.gz
linux-1ece2c43b88660ddbdf8ecb772e9c41ed9cda3dd.tar.bz2
linux-1ece2c43b88660ddbdf8ecb772e9c41ed9cda3dd.zip
vboxsf: explicitly deny setlease attempts
vboxsf does not break leases on its own, so it can't properly handle the case where the hypervisor changes the data. Don't allow file leases on vboxsf. Signed-off-by: Jeff Layton <jlayton@kernel.org> Link: https://lore.kernel.org/r/20240319-setlease-v1-1-5997d67e04b3@kernel.org Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'fs/vboxsf')
-rw-r--r--fs/vboxsf/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/vboxsf/file.c b/fs/vboxsf/file.c
index 2307f8037efc..118dedef8ebe 100644
--- a/fs/vboxsf/file.c
+++ b/fs/vboxsf/file.c
@@ -218,6 +218,7 @@ const struct file_operations vboxsf_reg_fops = {
.release = vboxsf_file_release,
.fsync = noop_fsync,
.splice_read = filemap_splice_read,
+ .setlease = simple_nosetlease,
};
const struct inode_operations vboxsf_reg_iops = {