summaryrefslogtreecommitdiffstats
path: root/fs/smb/client/cifsglob.h
diff options
context:
space:
mode:
authorSteve French <stfrench@microsoft.com>2024-02-13 00:40:01 -0600
committerSteve French <stfrench@microsoft.com>2024-03-10 19:33:53 -0500
commitc1eb537bf4560b3ad4df606c266c665624f3b502 (patch)
tree741ec7b0f7cb7be6da604b175c04f3e80fa6c02f /fs/smb/client/cifsglob.h
parente4b61f3b1c67f5068590965f64ea6e8d5d5bd961 (diff)
downloadlinux-stable-c1eb537bf4560b3ad4df606c266c665624f3b502.tar.gz
linux-stable-c1eb537bf4560b3ad4df606c266c665624f3b502.tar.bz2
linux-stable-c1eb537bf4560b3ad4df606c266c665624f3b502.zip
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>
Diffstat (limited to 'fs/smb/client/cifsglob.h')
-rw-r--r--fs/smb/client/cifsglob.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/smb/client/cifsglob.h b/fs/smb/client/cifsglob.h
index 53c75cfb33ab..ec9a26bd05a1 100644
--- a/fs/smb/client/cifsglob.h
+++ b/fs/smb/client/cifsglob.h
@@ -1066,6 +1066,7 @@ struct cifs_ses {
enum securityEnum sectype; /* what security flavor was specified? */
bool sign; /* is signing required? */
bool domainAuto:1;
+ bool expired_pwd; /* track if access denied or expired pwd so can know if need to update */
unsigned int flags;
__u16 session_flags;
__u8 smb3signingkey[SMB3_SIGN_KEY_SIZE];