提交 aadd69ca 编写于 作者: P Paul Aurich 提交者: Steve French

cifs: Display local UID details for SMB sessions in DebugData

This is useful for distinguishing SMB sessions on a multiuser mount.
Signed-off-by: NPaul Aurich <paul@darkrain42.org>
Signed-off-by: NSteve French <stfrench@microsoft.com>
Reviewed-by: NAurelien Aptel <aaptel@suse.com>
上级 9ebcfadb
...@@ -399,6 +399,10 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v) ...@@ -399,6 +399,10 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v)
if (ses->sign) if (ses->sign)
seq_puts(m, " signed"); seq_puts(m, " signed");
seq_printf(m, "\n\tUser: %d Cred User: %d",
from_kuid(&init_user_ns, ses->linux_uid),
from_kuid(&init_user_ns, ses->cred_uid));
if (ses->chan_count > 1) { if (ses->chan_count > 1) {
seq_printf(m, "\n\n\tExtra Channels: %zu\n", seq_printf(m, "\n\n\tExtra Channels: %zu\n",
ses->chan_count-1); ses->chan_count-1);
...@@ -406,7 +410,7 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v) ...@@ -406,7 +410,7 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v)
cifs_dump_channel(m, j, &ses->chans[j]); cifs_dump_channel(m, j, &ses->chans[j]);
} }
seq_puts(m, "\n\tShares:"); seq_puts(m, "\n\n\tShares:");
j = 0; j = 0;
seq_printf(m, "\n\t%d) IPC: ", j); seq_printf(m, "\n\t%d) IPC: ", j);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册