mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
cifs: Display local UID details for SMB sessions in DebugData
This is useful for distinguishing SMB sessions on a multiuser mount. Signed-off-by: Paul Aurich <paul@darkrain42.org> Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Aurelien Aptel <aaptel@suse.com>
This commit is contained in:
parent
9ebcfadb06
commit
aadd69cad0
@ -399,6 +399,10 @@ skip_rdma:
|
||||
if (ses->sign)
|
||||
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) {
|
||||
seq_printf(m, "\n\n\tExtra Channels: %zu\n",
|
||||
ses->chan_count-1);
|
||||
@ -406,7 +410,7 @@ skip_rdma:
|
||||
cifs_dump_channel(m, j, &ses->chans[j]);
|
||||
}
|
||||
|
||||
seq_puts(m, "\n\tShares:");
|
||||
seq_puts(m, "\n\n\tShares:");
|
||||
j = 0;
|
||||
|
||||
seq_printf(m, "\n\t%d) IPC: ", j);
|
||||
|
Loading…
Reference in New Issue
Block a user