smb: client: default to nonativesocket under POSIX mounts

SMB3.1.1 POSIX mounts require sockets to be created with NFS reparse
points.

Cc: linux-cifs@vger.kernel.org
Cc: Ralph Boehme <slow@samba.org>
Cc: David Howells <dhowells@redhat.com>
Cc: <stable@vger.kernel.org>
Reported-by: Matthew Richardson <m.richardson@ed.ac.uk>
Closes: https://marc.info/?i=1124e7cd-6a46-40a6-9f44-b7664a66654b@ed.ac.uk
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
Paulo Alcantara 2025-07-31 20:46:42 -03:00 committed by Steve French
parent a967e758f8
commit 6b445309ee
1 changed files with 1 additions and 0 deletions

View File

@ -1652,6 +1652,7 @@ static int smb3_fs_context_parse_param(struct fs_context *fc,
pr_warn_once("conflicting posix mount options specified\n"); pr_warn_once("conflicting posix mount options specified\n");
ctx->linux_ext = 1; ctx->linux_ext = 1;
ctx->no_linux_ext = 0; ctx->no_linux_ext = 0;
ctx->nonativesocket = 1; /* POSIX mounts use NFS style reparse points */
} }
break; break;
case Opt_nocase: case Opt_nocase: