]> www.infradead.org Git - users/dwmw2/linux.git/commit
cifs: Add support for creating native Windows sockets
authorPali Rohár <pali@kernel.org>
Mon, 16 Sep 2024 18:21:52 +0000 (20:21 +0200)
committerSteve French <stfrench@microsoft.com>
Fri, 31 Jan 2025 18:51:20 +0000 (12:51 -0600)
commit45a99d5d117300eb84eceaa312bb3c3262f8c85b
tree4fa380299085c5132e6d88bb2ed9f50b3f261853
parent78f69467cbbfd24da5ce9917c4b738b38a615f8b
cifs: Add support for creating native Windows sockets

Native Windows sockets created by WinSock on Windows 10 April 2018 Update
(version 1803) or Windows Server 2019 (version 1809) or later versions is
reparse point with IO_REPARSE_TAG_AF_UNIX tag, with empty reparse point
data buffer and without any EAs.

Create AF_UNIX sockets in this native format if -o nonativesocket was not
specified.

This change makes AF_UNIX sockets created by Linux CIFS client compatible
with AF_UNIX sockets created by Windows applications on NTFS volumes.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsfs.c
fs/smb/client/connect.c
fs/smb/client/fs_context.c
fs/smb/client/fs_context.h
fs/smb/client/reparse.c