mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:04:51 +01:00
smb: client: Don't log plaintext credentials in cifs_set_cifscreds
When debug logging is enabled, cifs_set_cifscreds() logs the key
payload and exposes the plaintext username and password. Remove the
debug log to avoid exposing credentials.
Fixes: 8a8798a5ff ("cifs: fetch credentials out of keyring for non-krb5 auth multiuser mounts")
Cc: stable@vger.kernel.org
Acked-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
d9d1e319b3
commit
2f37dc436d
1 changed files with 0 additions and 1 deletions
|
|
@ -2236,7 +2236,6 @@ cifs_set_cifscreds(struct smb3_fs_context *ctx, struct cifs_ses *ses)
|
|||
/* find first : in payload */
|
||||
payload = upayload->data;
|
||||
delim = strnchr(payload, upayload->datalen, ':');
|
||||
cifs_dbg(FYI, "payload=%s\n", payload);
|
||||
if (!delim) {
|
||||
cifs_dbg(FYI, "Unable to find ':' in payload (datalen=%d)\n",
|
||||
upayload->datalen);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue