]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb3: if server does not support posix do not allow posix mount option
authorSteve French <stfrench@microsoft.com>
Mon, 18 Jun 2018 19:01:59 +0000 (14:01 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Sep 2018 07:46:54 +0000 (09:46 +0200)
commit813cbe22dc04e9661aca291857982448edbfa8bd
treed96a00bba9711c7a526bb620d9cb66012962c936
parentc2704b5e46882d7b5cf4600187523f699efd41f5
smb3: if server does not support posix do not allow posix mount option

[ Upstream commit 8505c8bfd85a260c9dc5c47e15bd8c5357fcbcd2 ]

If user specifies "posix" on an SMB3.11 mount, then fail the mount
if server does not return the POSIX negotiate context indicating
support for posix.

Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/connect.c