diff options
author | Jeff Layton <jlayton@poochiereds.net> | 2014-06-22 02:52:16 +0200 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-07-13 00:41:20 +0200 |
commit | a0337d1ddb5a4bd609e3ff0955551cb240340340 (patch) | |
tree | 70aaa98dc13ac50b41f4741b620b8954508f9728 /net/sunrpc/auth.c | |
parent | auth_gss: fetch the acceptor name out of the downcall (diff) | |
download | linux-a0337d1ddb5a4bd609e3ff0955551cb240340340.tar.xz linux-a0337d1ddb5a4bd609e3ff0955551cb240340340.zip |
sunrpc: add a new "stringify_acceptor" rpc_credop
...and add an new rpc_auth function to call it when it exists. This
is only applicable for AUTH_GSS mechanisms, so we only specify this
for those sorts of credentials.
Signed-off-by: Jeff Layton <jlayton@poochiereds.net>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'net/sunrpc/auth.c')
-rw-r--r-- | net/sunrpc/auth.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c index f77366717420..1481efff6aa2 100644 --- a/net/sunrpc/auth.c +++ b/net/sunrpc/auth.c @@ -363,6 +363,15 @@ rpcauth_cred_key_to_expire(struct rpc_cred *cred) } EXPORT_SYMBOL_GPL(rpcauth_cred_key_to_expire); +char * +rpcauth_stringify_acceptor(struct rpc_cred *cred) +{ + if (!cred->cr_ops->crstringify_acceptor) + return NULL; + return cred->cr_ops->crstringify_acceptor(cred); +} +EXPORT_SYMBOL_GPL(rpcauth_stringify_acceptor); + /* * Destroy a list of credentials */ |