diff options
author | Aurelien Aptel <aaptel@suse.com> | 2017-02-22 14:47:17 +0100 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2017-03-03 00:04:58 +0100 |
commit | f0712928be1a66c99c35f871b4df7fa23ec1574a (patch) | |
tree | 3262f33e0131838da803cc1e7c20da2605bbc6f3 /fs/sysv | |
parent | CIFS: set signing flag in SMB2+ TreeConnect if needed (diff) | |
download | linux-f0712928be1a66c99c35f871b4df7fa23ec1574a.tar.xz linux-f0712928be1a66c99c35f871b4df7fa23ec1574a.zip |
CIFS: use DFS pathnames in SMB2+ Create requests
When connected to a DFS capable share, the client must set the
SMB2_FLAGS_DFS_OPERATIONS flag in the SMB2 header and use
DFS path names: "<server>\<share>\<path>" *without* leading \\.
Sources:
[MS-SMB2] 3.2.5.5 Receiving an SMB2 TREE_CONNECT Response
> TreeConnect.IsDfsShare MUST be set to TRUE, if the SMB2_SHARE_CAP_DFS
> bit is set in the Capabilities field of the response.
[MS-SMB2] 3.2.4.3 Application Requests Opening a File
> If TreeConnect.IsDfsShare is TRUE, the SMB2_FLAGS_DFS_OPERATIONS flag
> is set in the Flags field.
[MS-SMB2] 2.2.13 SMB2 CREATE Request, NameOffset:
> If SMB2_FLAGS_DFS_OPERATIONS is set in the Flags field of the SMB2
> header, the file name includes a prefix that will be processed during
> DFS name normalization as specified in section 3.3.5.9. Otherwise, the
> file name is relative to the share that is identified by the TreeId in
> the SMB2 header.
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Acked-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/sysv')
0 files changed, 0 insertions, 0 deletions