]> Git Repo - linux.git/commitdiff
smb3: for kerberos mounts display the credential uid used
authorSteve French <[email protected]>
Sat, 2 Mar 2019 12:56:54 +0000 (06:56 -0600)
committerSteve French <[email protected]>
Wed, 6 Mar 2019 00:10:48 +0000 (18:10 -0600)
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 <[email protected]>
Reviewed-by: Ronnie Sahlberg <[email protected]>
fs/cifs/cifsfs.c

index f2c0d863fb521f39a448224ea85be38cad0c9259..217276b8b942f59d96fa74edc9d119402d3c7031 100644 (file)
@@ -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");
This page took 0.0569 seconds and 4 git commands to generate.