Re: [PATCH] smb: client: fix null auth
From: Paulo Alcantara
Date: Tue Aug 15 2023 - 14:42:19 EST
Scott Mayhew <smayhew@xxxxxxxxxx> writes:
> Commit abdb1742a312 removed code that clears ctx->username when
> sec=none, so attempting to mount with '-o sec=none' now fails with
> -EACCES. Fix it by adding that logic to the parsing of the 'sec'
> option, as well as checking if the mount is using null auth before
> setting the username when parsing the 'user' option.
>
> Fixes: abdb1742a312 ("cifs: get rid of mount options string parsing")
> Signed-off-by: Scott Mayhew <smayhew@xxxxxxxxxx>
> ---
> fs/smb/client/fs_context.c | 4 ++++
> 1 file changed, 4 insertions(+)
Reviewed-by: Paulo Alcantara (SUSE) <pc@xxxxxxxxxxxxx>