cifs: we do not allow changing username/password/unc/... during remount
Subsystems (2)
PATCH 14/21 cifs: we do not allow changing username/password/unc/... during remount
Signed-off-by Ronnie Sahlberg <[email protected]>
--- 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
@@ -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
@@ -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