Re: [PATCH] smb/server: do not require delete access for non-replacing links
ChenXiaoSong <[email protected]>
| Newsgroups | org.kernel.vger.linux-cifs,org.kernel.vger.stable |
|---|---|
| Message-ID | <[email protected]> |
Reported-by: Steve French <[email protected]> 在 2026/6/28 15:42, ChenXiaoSong 写道: > From: ChenXiaoSong <[email protected]> > > Reproducer: > > 1. server: systemctl start ksmbd > 2. client: mount -t cifs //${server_ip}/export /mnt > 3. client: touch /mnt/file; ln /mnt/file /mnt/hardlink > 4. client err log: ln: failed to create hard link 'hardlink' => 'file': Permission denied > 5. server err log: ksmbd: no right to delete : 0x80 > > Fixes: 13f3942f2bf4 ("ksmbd: add per-handle permission check to FILE_LINK_INFORMATION") > Cc: [email protected] > Signed-off-by: ChenXiaoSong <[email protected]> -- ChenXiaoSong <[email protected]> Chinese Homepage: https://chenxiaosong.com English Homepage: https://chenxiaosong.com/en