Skip to contentSkip to conversation

cifs: we do not allow changing username/password/unc/... during remount

PATCH New Ronnie Sahlberg 1 participant 1 message Dec 9, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 14/21 cifs: we do not allow changing username/password/unc/... during remount

---
 fs/cifs/cifsfs.c     |  2 +-
 fs/cifs/fs_context.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++---
 fs/cifs/fs_context.h |  2 +-
 3 files changed, 52 insertions(+), 5 deletions(-)
fs/cifs/cifsfs.c +1 -1
index 80117e9d35f9..13d7f4a3c836 100644
@@ -490,7 +490,7 @@ cifs_show_options(struct seq_file *s, struct dentry *root)
 
 	if (tcon->no_lease)
 		seq_puts(s, ",nolease");
-	if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MULTIUSER)
+	if (cifs_sb->ctx->multiuser)
 		seq_puts(s, ",multiuser");
 	else if (tcon->ses->user_name)
 		seq_show_option(s, "username", tcon->ses->user_name);
fs/cifs/fs_context.c +50 -3

70 lines not on this page · raw message

fs/cifs/fs_context.h +1 -1
index aa1d952fd5ce..62f5a8d98df6 100644
@@ -148,7 +148,6 @@ struct smb3_fs_context {
 	bool uid_specified;
 	bool gid_specified;
 	bool sloppy;
-	char *nodename;
 	bool got_ip;
 	bool got_version;
 	bool got_rsize;
@@ -160,6 +159,7 @@ struct smb3_fs_context {
 	char *password;
 	char *domainname;
 	char *UNC;
+	char *nodename;
 	char *iocharset;  /* local code page for mapping to and from Unicode */
 	char source_rfc1001_name[RFC1001_NAME_LEN_WITH_NULL]; /* clnt nb name */
 	char target_rfc1001_name[RFC1001_NAME_LEN_WITH_NULL]; /* srvr nb name */
Signature · 1 line
2.13.6