diff options
author | J. Bruce Fields <bfields@redhat.com> | 2012-05-14 19:55:22 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-05-31 20:29:55 -0400 |
commit | 03a4e1f6ddf25f48848e1bddcffc0ad489648331 (patch) | |
tree | f140e3deb767d092eca997037ebb7b098d8afce9 /net/sunrpc/svcauth_unix.c | |
parent | 631fc9ea05c97e5d1d14ea58a7347be4857d09da (diff) |
nfsd4: move principal name into svc_cred
Instead of keeping the principal name associated with a request in a
structure that's private to auth_gss and using an accessor function,
move it to svc_cred.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/svcauth_unix.c')
-rw-r--r-- | net/sunrpc/svcauth_unix.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sunrpc/svcauth_unix.c b/net/sunrpc/svcauth_unix.c index 9c3b9f014468..12e4897d0bf3 100644 --- a/net/sunrpc/svcauth_unix.c +++ b/net/sunrpc/svcauth_unix.c | |||
@@ -740,6 +740,7 @@ svcauth_null_accept(struct svc_rqst *rqstp, __be32 *authp) | |||
740 | struct svc_cred *cred = &rqstp->rq_cred; | 740 | struct svc_cred *cred = &rqstp->rq_cred; |
741 | 741 | ||
742 | cred->cr_group_info = NULL; | 742 | cred->cr_group_info = NULL; |
743 | cred->cr_principal = NULL; | ||
743 | rqstp->rq_client = NULL; | 744 | rqstp->rq_client = NULL; |
744 | 745 | ||
745 | if (argv->iov_len < 3*4) | 746 | if (argv->iov_len < 3*4) |
@@ -805,6 +806,7 @@ svcauth_unix_accept(struct svc_rqst *rqstp, __be32 *authp) | |||
805 | int len = argv->iov_len; | 806 | int len = argv->iov_len; |
806 | 807 | ||
807 | cred->cr_group_info = NULL; | 808 | cred->cr_group_info = NULL; |
809 | cred->cr_principal = NULL; | ||
808 | rqstp->rq_client = NULL; | 810 | rqstp->rq_client = NULL; |
809 | 811 | ||
810 | if ((len -= 3*4) < 0) | 812 | if ((len -= 3*4) < 0) |