linux/fs/9p
Jeff Layton 5d65a70bd0
9p: don't allow delegations to be set on directories
With the advent of directory leases, it's necessary to set the
->setlease() handler in directory file_operations to properly deny them.

Fixes: e6d28ebc17 ("filelock: push the S_ISREG check down to ->setlease handlers")
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20260107-setlease-6-19-v1-3-85f034abcc57@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
2026-01-12 10:54:47 +01:00
..
acl.c fs: inline current_umask() and move it to fs_struct.h 2025-11-05 22:51:23 +01:00
acl.h fs: port ->set_acl() to pass mnt_idmap 2023-01-19 09:24:27 +01:00
cache.c mm, netfs, fscache: stop read optimisation when folio removed from pagecache 2023-08-18 10:12:13 -07:00
cache.h fs/9p: Rework cache modes and add new options to Documentation 2023-04-09 21:41:21 +00:00
fid.c 9p: v9fs_fid_find: also lookup by inode if not found dentry 2024-09-23 05:51:27 +09:00
fid.h fs/9p: fix the cache always being enabled on files with qid flags 2024-03-28 15:10:29 +00:00
Kconfig 9p: Remove INET dependency 2023-05-04 21:46:57 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
v9fs.c 9p: fix new mount API cache option handling 2025-12-05 12:54:05 +00:00
v9fs.h 9p: convert to the new mount API 2025-11-03 16:49:53 +09:00
v9fs_vfs.h Revert "fs/9p: simplify iget to remove unnecessary paths" 2024-10-25 06:26:09 +09:00
vfs_addr.c vfs-6.16-rc1.netfs 2025-06-02 15:04:06 -07:00
vfs_dentry.c fs/9p: delete unnnecessary condition 2025-11-03 16:49:53 +09:00
vfs_dir.c 9p: don't allow delegations to be set on directories 2026-01-12 10:54:47 +01:00
vfs_file.c - fix a bug with O_APPEND in cached mode causing data to be written multiple times on server 2025-12-07 08:29:09 -08:00
vfs_inode.c - fix a bug with O_APPEND in cached mode causing data to be written multiple times on server 2025-12-07 08:29:09 -08:00
vfs_inode_dotl.c - fix a bug with O_APPEND in cached mode causing data to be written multiple times on server 2025-12-07 08:29:09 -08:00
vfs_super.c 9p: convert to the new mount API 2025-11-03 16:49:53 +09:00
xattr.c Bunch of small fixes: 2023-11-04 09:20:04 -10:00
xattr.h 9p: move xattr-related structs to .rodata 2023-10-09 16:24:16 +02:00