From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Shilovsky Subject: [PATCH v2 48/53] CIFS: Process signing for SMB2_logoff Date: Fri, 28 Oct 2011 23:54:59 +0400 Message-ID: <1319831704-3572-49-git-send-email-piastry@etersoft.ru> References: <1319831704-3572-1-git-send-email-piastry@etersoft.ru> Cc: linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Pavel Shilovsky To: linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Return-path: In-Reply-To: <1319831704-3572-1-git-send-email-piastry-7qunaywFIewox3rIn2DAYQ@public.gmane.org> Sender: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-fsdevel.vger.kernel.org From: Pavel Shilovsky Signed-off-by: Pavel Shilovsky --- fs/cifs/smb2pdu.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index ee7eec1..4ce496a 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -1035,6 +1035,8 @@ SMB2_logoff(const int xid, struct cifs_ses *ses) /* since no tcon, smb2_init can not do this, so do here */ pSMB2->hdr.SessionId = ses->Suid; + if (server->sec_mode & SECMODE_SIGN_REQUIRED) + pSMB2->hdr.Flags |= SMB2_FLAGS_SIGNED; rc = smb2_sendrcv_norsp(xid, ses, &pSMB2->hdr, CIFS_STD_OP | CIFS_LOG_ERROR); -- 1.7.1