diff options
author | Steve French <stfrench@microsoft.com> | 2019-03-02 06:56:54 -0600 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2019-03-05 18:10:48 -0600 |
commit | 96281b9e46ebb90cefa8b57b11ca40e5ac05f649 (patch) | |
tree | c0bec2eee04f7b2e3f2e9ea3b1a77026c74014e1 /fs/cifs/cifsfs.c | |
parent | 259594bea574e515a148171b5cd84ce5cbdc028a (diff) | |
download | linux-96281b9e46ebb90cefa8b57b11ca40e5ac05f649.tar.bz2 |
smb3: for kerberos mounts display the credential uid used
For kerberos mounts, the cruid is helpful to display in
/proc/mounts in order to tell which uid's krb5 cache we
got the ticket for and to tell in the multiuser krb5 case
which local users (uids) we have Kerberos authentic sessions
for.
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r-- | fs/cifs/cifsfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index f2c0d863fb52..217276b8b942 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -381,7 +381,7 @@ cifs_show_security(struct seq_file *s, struct cifs_ses *ses) seq_puts(s, "ntlm"); break; case Kerberos: - seq_puts(s, "krb5"); + seq_printf(s, "krb5,cruid=%u", from_kuid_munged(&init_user_ns,ses->cred_uid)); break; case RawNTLMSSP: seq_puts(s, "ntlmssp"); |