Commit 5fde3c2
ksmbd: do not sign response to session request for guest login
If ksmbd.mountd is configured to assign unknown users to the guest account
("map to guest = bad user" in the config), ksmbd signs the response.
This is wrong according to MS-SMB2 3.3.5.5.3:
12. If the SMB2_SESSION_FLAG_IS_GUEST bit is not set in the SessionFlags
field, and Session.IsAnonymous is FALSE, the server MUST sign the
final session setup response before sending it to the client, as
follows:
[...]
This fixes libsmb2 based applications failing to establish a session
("Wrong signature in received").
Fixes: e2f3448 ("cifsd: add server-side procedures for SMB3")
Cc: [email protected]
Signed-off-by: Marios Makassikis <[email protected]>
Acked-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>1 parent 0d0d468 commit 5fde3c2
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8663 | 8663 | | |
8664 | 8664 | | |
8665 | 8665 | | |
| 8666 | + | |
8666 | 8667 | | |
8667 | 8668 | | |
8668 | 8669 | | |
| |||
8672 | 8673 | | |
8673 | 8674 | | |
8674 | 8675 | | |
| 8676 | + | |
8675 | 8677 | | |
8676 | 8678 | | |
8677 | 8679 | | |
| |||
0 commit comments