diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-06-07 10:14:14 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-07-10 23:40:31 -0400 |
commit | 4a8c1344dccb848dbcf0edabc8b5c51a8ecf2808 (patch) | |
tree | ecfa69d4bc36aefe86c2528240ef69da723f5bf4 /net/sunrpc/auth_unix.c | |
parent | c1384c9c4c184543375b52a0997d06cd98145164 (diff) | |
download | kernel_samsung_espresso10-4a8c1344dccb848dbcf0edabc8b5c51a8ecf2808.zip kernel_samsung_espresso10-4a8c1344dccb848dbcf0edabc8b5c51a8ecf2808.tar.gz kernel_samsung_espresso10-4a8c1344dccb848dbcf0edabc8b5c51a8ecf2808.tar.bz2 |
SUNRPC: Add a backpointer from the struct rpc_cred to the rpc_auth
Cleans up an issue whereby rpcsec_gss uses the rpc_clnt->cl_auth. If we want
to be able to add several rpc_auths to a single rpc_clnt, then this abuse
must go.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/auth_unix.c')
-rw-r--r-- | net/sunrpc/auth_unix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/auth_unix.c b/net/sunrpc/auth_unix.c index 4e7733a..82300b8 100644 --- a/net/sunrpc/auth_unix.c +++ b/net/sunrpc/auth_unix.c @@ -92,6 +92,7 @@ unx_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) if (i < NFS_NGROUPS) cred->uc_gids[i] = NOGROUP; } + cred->uc_base.cr_auth = &unix_auth; cred->uc_base.cr_ops = &unix_credops; return (struct rpc_cred *) cred; |