Re: [PATCH] smb/server: do not require delete access for non-replacing links

Namjae Jeon <[email protected]>
Newsgroups org.kernel.vger.linux-cifs,org.kernel.vger.stable
Message-ID <CAKYAXd9ijOdQJ+3oJsrLoup5Rg2Eq5WeCNb507dTETQRG8i5SA@mail.gmail.com>
On Sun, Jun 28, 2026 at 4:43 PM ChenXiaoSong
<[email protected]> wrote:
>
> 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]>
Applied it to #ksmbd-for-next-next.
Thanks!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.