]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb: client: use actual path when queryfs
authorwangrong <wangrong@uniontech.com>
Thu, 20 Jun 2024 08:37:29 +0000 (16:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2024 10:04:04 +0000 (12:04 +0200)
commitbcdabd79f843af461104b4e05d120d652e24eb30
treedab8968195ab3168b089130ddeebdb949c2f3e0a
parentd1eae544382e5e271bc393dd4762a8f4cdd8315b
smb: client: use actual path when queryfs

commit a421e3fe0e6abe27395078f4f0cec5daf466caea upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/client/cifsfs.c
fs/smb/client/cifsglob.h
fs/smb/client/smb1ops.c
fs/smb/client/smb2ops.c