]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifs: allow changing password during remount
authorSteve French <stfrench@microsoft.com>
Tue, 13 Feb 2024 06:40:01 +0000 (00:40 -0600)
committerSteve French <stfrench@microsoft.com>
Mon, 11 Mar 2024 00:33:53 +0000 (19:33 -0500)
commitc1eb537bf4560b3ad4df606c266c665624f3b502
tree741ec7b0f7cb7be6da604b175c04f3e80fa6c02f
parente4b61f3b1c67f5068590965f64ea6e8d5d5bd961
cifs: allow changing password during remount

There are cases where a session is disconnected and password has changed
on the server (or expired) for this user and this currently can not
be fixed without unmount and mounting again.  This patch allows
remount to change the password (for the non Kerberos case, Kerberos
ticket refresh is handled differently) when the session is disconnected
and the user can not reconnect due to still using old password.

Future patches should also allow us to setup the keyring (cifscreds)
to have an "alternate password" so we would be able to change
the password before the session drops (without the risk of races
between when the password changes and the disconnect occurs -
ie cases where the old password is still needed because the new
password has not fully rolled out to all servers yet).

Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifs_debug.c
fs/smb/client/cifsglob.h
fs/smb/client/fs_context.c
fs/smb/client/smb2pdu.c