[PATCH] smb/server: check destination is open when renaming

ChenXiaoSong chenxiaosong at chenxiaosong.com
Tue Aug 4 08:28:02 UTC 2026


According to MS-FSA 2.1.5.15.12, level 10 (FileRenameInformation), an 
overwrite rename must fail with STATUS_ACCESS_DENIED if the existing 
target still has an open.

MS-FSA 2.1.5.15.12 FileRenameInformation: 
https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-fsa/87f86c9b-6c2a-4803-84b7-131a74a434fa 


On 8/4/26 15:53, Namjae Jeon wrote:
> Okay. We can implement this in ksmbd and cifs.ko to pass generic/035 test.
> 
> Thanks for sharing it.

-- 
ChenXiaoSong <chenxiaosong at chenxiaosong.com>
Chinese Homepage: https://chenxiaosong.com
English Homepage: https://chenxiaosong.com/en




More information about the samba-technical mailing list