Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eda2116f authored by Steve French's avatar Steve French
Browse files

[CIFS] mount option sec=none not displayed properly in /proc/mounts



When the user specifies "sec=none" in a cifs mount, we set
sec_type as unspecified (and set a flag and the username will be
null) rather than setting sectype as "none" so
cifs_show_security was not properly displaying it in
cifs /proc/mounts entries.

Signed-off-by: default avatarSteve French <steve.french@primarydata.com>
Reviewed-by: default avatarJeff Layton <jlayton@poochiereds.net>
parent 4c17a6d5
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -325,8 +325,11 @@ cifs_show_address(struct seq_file *s, struct TCP_Server_Info *server)
static void
static void
cifs_show_security(struct seq_file *s, struct cifs_ses *ses)
cifs_show_security(struct seq_file *s, struct cifs_ses *ses)
{
{
	if (ses->sectype == Unspecified)
	if (ses->sectype == Unspecified) {
		if (ses->user_name == NULL)
			seq_puts(s, ",sec=none");
		return;
		return;
	}


	seq_puts(s, ",sec=");
	seq_puts(s, ",sec=");