From: Frank Sorenson <sorenson@redhat.com>
To: linux-nfs@vger.kernel.org
Subject: [PATCH 1/5] sunrpc: add hash_cred() function to rpc_authops struct
Date: Thu, 29 Sep 2016 10:44:37 -0500 [thread overview]
Message-ID: <1475163881-12438-2-git-send-email-sorenson@redhat.com> (raw)
In-Reply-To: <1475163881-12438-1-git-send-email-sorenson@redhat.com>
Currently, a single hash algorithm is used to hash the auth_cred for
the credcache for all rpc_auth types. Add a hash_cred() function to
the rpc_authops struct to allow a hash function specific to each
auth flavor.
Signed-off-by: Frank Sorenson <sorenson@redhat.com>
---
include/linux/sunrpc/auth.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/sunrpc/auth.h b/include/linux/sunrpc/auth.h
index 4ccf184..b1bc62b 100644
--- a/include/linux/sunrpc/auth.h
+++ b/include/linux/sunrpc/auth.h
@@ -131,6 +131,7 @@ struct rpc_authops {
struct rpc_auth * (*create)(struct rpc_auth_create_args *, struct rpc_clnt *);
void (*destroy)(struct rpc_auth *);
+ int (*hash_cred)(struct auth_cred *, unsigned int);
struct rpc_cred * (*lookup_cred)(struct rpc_auth *, struct auth_cred *, int);
struct rpc_cred * (*crcreate)(struct rpc_auth*, struct auth_cred *, int, gfp_t);
int (*list_pseudoflavors)(rpc_authflavor_t *, int);
--
2.5.5
next prev parent reply other threads:[~2016-09-29 15:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-29 15:44 [PATCH 0/5] Add auth-specific auth_cred hash functions Frank Sorenson
2016-09-29 15:44 ` Frank Sorenson [this message]
2016-09-29 15:44 ` [PATCH 2/5] sunrpc: add generic_auth hash_cred() function Frank Sorenson
2016-09-29 15:44 ` [PATCH 3/5] sunrpc: add auth_unix " Frank Sorenson
2016-09-29 15:44 ` [PATCH 4/5] sunrpc: add RPCSEC_GSS " Frank Sorenson
2016-09-29 15:44 ` [PATCH 5/5] sunrpc: replace generic auth_cred hash with auth-specific function Frank Sorenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1475163881-12438-2-git-send-email-sorenson@redhat.com \
--to=sorenson@redhat.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).