The Samba-Bugzilla – Attachment 11434 Details for
Bug 10078
when fstab specifies sec=none, mount reports sec=ntlm
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to display sec=none properly in /proc/mounts
0001-CIFS-mount-option-sec-none-not-displayed-properly-in.patch (text/plain), 1.08 KB, created by
Steve French
on 2015-09-12 00:48:59 UTC
(
hide
)
Description:
patch to display sec=none properly in /proc/mounts
Filename:
MIME Type:
Creator:
Steve French
Created:
2015-09-12 00:48:59 UTC
Size:
1.08 KB
patch
obsolete
>From ae8d88820c6d59d5369932f126d8cc633b24a634 Mon Sep 17 00:00:00 2001 >From: Steve French <smfrench@gmail.com> >Date: Fri, 11 Sep 2015 19:24:19 -0500 >Subject: [PATCH] [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: Steve French <steve.french@primarydata.com> >--- > fs/cifs/cifsfs.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c >index 6a1119e..e739950 100644 >--- a/fs/cifs/cifsfs.c >+++ b/fs/cifs/cifsfs.c >@@ -325,8 +325,11 @@ cifs_show_address(struct seq_file *s, struct TCP_Server_Info *server) > static void > 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; >+ } > > seq_puts(s, ",sec="); > >-- >1.9.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 10078
: 11434