]> git.hungrycats.org Git - linux/commit
smb: client: use actual path when queryfs
authorwangrong <wangrong@uniontech.com>
Thu, 20 Jun 2024 08:37:29 +0000 (16:37 +0800)
committerSteve French <stfrench@microsoft.com>
Wed, 2 Oct 2024 02:47:16 +0000 (21:47 -0500)
commita421e3fe0e6abe27395078f4f0cec5daf466caea
tree93caf65b4b81000258432f3a24506dd2faff0340
parentc9432ad5e32f066875b1bf95939c363bc46d6a45
smb: client: use actual path when queryfs

Due to server permission control, the client does not have access to
the shared root directory, but can access subdirectories normally, so
users usually mount the shared subdirectories directly. In this case,
queryfs should use the actual path instead of the root directory to
avoid the call returning an error (EACCES).

Signed-off-by: wangrong <wangrong@uniontech.com>
Reviewed-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsfs.c
fs/smb/client/cifsglob.h
fs/smb/client/smb1ops.c
fs/smb/client/smb2ops.c