]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb: use credential guards in cifs_get_spnego_key()
authorChristian Brauner <brauner@kernel.org>
Mon, 3 Nov 2025 11:27:01 +0000 (12:27 +0100)
committerChristian Brauner <brauner@kernel.org>
Tue, 4 Nov 2025 11:36:48 +0000 (12:36 +0100)
commitc5c92c624aeb90d708db276ce2dd57db11fdb823
treef589ea89728b8c9634841cd022d54ae096abda4c
parentf41799b2e1697779748bb0a15d4aafffe9d2f8dd
smb: use credential guards in cifs_get_spnego_key()

Use credential guards for scoped credential override with automatic
restoration on scope exit.

Link: https://patch.msgid.link/20251103-work-creds-guards-simple-v1-13-a3e156839e7f@kernel.org
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/smb/client/cifs_spnego.c