linux/fs/smb
Paulo Alcantara 77e5d743a8 smb: client: fix FSCTL_GET_REPARSE_POINT against NetApp
[ Upstream commit ddecea00f8 ]

NetApp server requires the file to be open with FILE_READ_EA access in
order to support FSCTL_GET_REPARSE_POINT, otherwise it will return
STATUS_INVALID_DEVICE_REQUEST.  It doesn't make any sense because
there's no requirement for FILE_READ_EA bit to be set nor
STATUS_INVALID_DEVICE_REQUEST being used for something other than
"unsupported reparse points" in MS-FSA.

To fix it and improve compatibility, set FILE_READ_EA & SYNCHRONIZE
bits to match what Windows client currently does.

Tested-by: Sebastian Steinbeisser <Sebastian.Steinbeisser@lrz.de>
Acked-by: Tom Talpey <tom@talpey.com>
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-09-08 07:54:31 +02:00
..
client smb: client: fix FSCTL_GET_REPARSE_POINT against NetApp 2024-09-08 07:54:31 +02:00
common ksmbd: return FILE_DEVICE_DISK instead of super magic 2024-07-25 09:50:55 +02:00
server ksmbd: fix race condition between destroy_previous_session() and smb2 operations() 2024-08-29 17:33:59 +02:00
Kconfig smb: move client and server files to common directory fs/smb 2023-05-24 16:29:21 -05:00
Makefile smb: move client and server files to common directory fs/smb 2023-05-24 16:29:21 -05:00