]> git.baikalelectronics.ru Git - kernel.git/commit
smb3: improve check for when we send the security descriptor context on create
authorSteve French <stfrench@microsoft.com>
Sat, 7 Dec 2019 23:38:22 +0000 (17:38 -0600)
committerSteve French <stfrench@microsoft.com>
Sat, 7 Dec 2019 23:38:22 +0000 (17:38 -0600)
commitb91f85301117c5c4a78db49cb9f1aba6c86bb7da
tree859fd24e773bdf7943bc99f8161ea07c9a34f4a8
parent7190c76d4cc61c4d7a08309ee6ff76a24ebfbf7d
smb3: improve check for when we send the security descriptor context on create

We had cases in the previous patch where we were sending the security
descriptor context on SMB3 open (file create) in cases when we hadn't
mounted with with "modefromsid" mount option.

Add check for that mount flag before calling ad_sd_context in
open init.

Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/smb2pdu.c