Skip to content

Commit

Permalink
ksmbd: force to turn off signing feature in SMB1
Browse files Browse the repository at this point in the history
signed tree connect failed by signing error with windows XP client.
For now, Force to turn off signing feature in SMB1.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
namjaejeon committed Dec 20, 2021
1 parent b089bdf commit bf26238
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions smb1pdu.c
Original file line number Diff line number Diff line change
@@ -8418,12 +8418,21 @@ int smb_setattr(struct ksmbd_work *work)
*/
bool smb1_is_sign_req(struct ksmbd_work *work, unsigned int command)
{
#if 0
struct smb_hdr *rcv_hdr1 = (struct smb_hdr *)work->request_buf;

/*
* FIXME: signed tree connect failed by signing error
* with windows XP client. For now, Force to turn off
* signing feature in SMB1.
*/
if ((rcv_hdr1->Flags2 & SMBFLG2_SECURITY_SIGNATURE) &&
command != SMB_COM_SESSION_SETUP_ANDX)
return true;
return false;
#else
return false;
#endif
}

/**

0 comments on commit bf26238

Please sign in to comment.