aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2012-05-14 22:06:49 -0400
committerJ. Bruce Fields <bfields@redhat.com>2012-05-31 20:29:58 -0400
commitd5497fc693a446ce9100fcf4117c3f795ddfd0d2 (patch)
tree7254a8eb06629de6c9ac4b8dbe8e38c79c979af3 /net/sunrpc
parent8fbba96e5b327665265ad02b7f331b68536828bf (diff)
nfsd4: move rq_flavor into svc_cred
Move the rq_flavor into struct svc_cred, and use it in setclientid and exchange_id comparisons as well. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/auth_gss/svcauth_gss.c2
-rw-r--r--net/sunrpc/svcauth_unix.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/net/sunrpc/auth_gss/svcauth_gss.c b/net/sunrpc/auth_gss/svcauth_gss.c
index d091d7d09bea..bcb773781ec0 100644
--- a/net/sunrpc/auth_gss/svcauth_gss.c
+++ b/net/sunrpc/auth_gss/svcauth_gss.c
@@ -1202,7 +1202,7 @@ svcauth_gss_accept(struct svc_rqst *rqstp, __be32 *authp)
1202 } 1202 }
1203 svcdata->rsci = rsci; 1203 svcdata->rsci = rsci;
1204 cache_get(&rsci->h); 1204 cache_get(&rsci->h);
1205 rqstp->rq_flavor = gss_svc_to_pseudoflavor( 1205 rqstp->rq_cred.cr_flavor = gss_svc_to_pseudoflavor(
1206 rsci->mechctx->mech_type, gc->gc_svc); 1206 rsci->mechctx->mech_type, gc->gc_svc);
1207 ret = SVC_OK; 1207 ret = SVC_OK;
1208 goto out; 1208 goto out;
diff --git a/net/sunrpc/svcauth_unix.c b/net/sunrpc/svcauth_unix.c
index 12e4897d0bf3..88962cf34377 100644
--- a/net/sunrpc/svcauth_unix.c
+++ b/net/sunrpc/svcauth_unix.c
@@ -768,7 +768,7 @@ svcauth_null_accept(struct svc_rqst *rqstp, __be32 *authp)
768 svc_putnl(resv, RPC_AUTH_NULL); 768 svc_putnl(resv, RPC_AUTH_NULL);
769 svc_putnl(resv, 0); 769 svc_putnl(resv, 0);
770 770
771 rqstp->rq_flavor = RPC_AUTH_NULL; 771 rqstp->rq_cred.cr_flavor = RPC_AUTH_NULL;
772 return SVC_OK; 772 return SVC_OK;
773} 773}
774 774
@@ -839,7 +839,7 @@ svcauth_unix_accept(struct svc_rqst *rqstp, __be32 *authp)
839 svc_putnl(resv, RPC_AUTH_NULL); 839 svc_putnl(resv, RPC_AUTH_NULL);
840 svc_putnl(resv, 0); 840 svc_putnl(resv, 0);
841 841
842 rqstp->rq_flavor = RPC_AUTH_UNIX; 842 rqstp->rq_cred.cr_flavor = RPC_AUTH_UNIX;
843 return SVC_OK; 843 return SVC_OK;
844 844
845badcred: 845badcred: