diff options
| author | 2026-01-07 09:20:10 -0500 | |
|---|---|---|
| committer | 2026-01-12 10:54:47 +0100 | |
| commit | b9a9be4d3557b97303ac6c8b5e153b7ef569d886 (patch) | |
| tree | f33c18fcc2c33f908bc802778cf899cc6a514bd1 /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com | |
| parent | nfs: properly disallow delegation requests on directories (diff) | |
smb/client: properly disallow delegations on directories
The check for S_ISREG() in cifs_setlease() is incorrect since that
operation doesn't get called for directories. The correct way to prevent
delegations on directories is to set the ->setlease() method in directory
file_operations to simple_nosetlease().
Fixes: e6d28ebc17eb ("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-2-85f034abcc57@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
