Re: [PATCH] ksmbd: do not sign response to session request for guest login

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2023-01-12 1:39 GMT+09:00, Marios Makassikis <mmakassikis@xxxxxxxxxx>:
> 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").
>
> Signed-off-by: Marios Makassikis <mmakassikis@xxxxxxxxxx>
Acked-by: Namjae Jeon <linkinjeon@xxxxxxxxxx>

Thanks!



[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux