summaryrefslogtreecommitdiff
path: root/scripts/sbom/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2026-06-21 19:37:56 +0900
committerSteve French <stfrench@microsoft.com>2026-06-22 20:15:05 -0500
commitc841bd3d8dec33a000d6e31b7e7fafb22c39e4e9 (patch)
tree6ae112bf575a782c33320fcf5b68bbbd36f8695f /scripts/sbom/git@git.tavy.me:linux-stable.git
parent9a5784f4d58b0ad772998329f0309f39b3bc1a09 (diff)
ksmbd: deny renaming directory with open children
Windows denies renaming a directory while a file below that directory is still open. smb2.rename.rename_dir_openfile checks this by keeping a file handle open under the directory and then attempting to rename the directory handle. ksmbd did not check open children before calling vfs_rename(), so the rename incorrectly succeeded. For non-POSIX clients, scan the global open file table for active handles whose dentries are below the directory being renamed. If any child is open, fail the rename with -EACCES so the client receives STATUS_ACCESS_DENIED. Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'scripts/sbom/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions