diff options
| author | Paul Aurich <paul@darkrain42.org> | 2020-06-26 12:58:04 -0700 | 
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2020-07-01 19:38:19 -0500 | 
| commit | aadd69cad07b4afe9e4c260bfcfcd954c6e696e1 (patch) | |
| tree | a209db88c1b801debac0d8c0603d83ffc0b88903 /fs/cifs | |
| parent | 9ebcfadb0610322ac537dd7aa5d9cbc2b2894c68 (diff) | |
| download | linux-aadd69cad07b4afe9e4c260bfcfcd954c6e696e1.tar.bz2 | |
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>
Diffstat (limited to 'fs/cifs')
| -rw-r--r-- | fs/cifs/cifs_debug.c | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c index fc98b97b396a..53588d7517b4 100644 --- a/fs/cifs/cifs_debug.c +++ b/fs/cifs/cifs_debug.c @@ -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); |