svcrpc: store gss mech in svc_cred
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 14 May 2013 20:07:13 +0000 (16:07 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 1 Jul 2013 21:23:06 +0000 (17:23 -0400)
commit0dc1531aca7fd1440918bd55844a054e9c29acad
tree3bed6a56a709b4781d8108f7a5b7546a6685fd09
parent442340639194762df7e61e8aabae44a18896eca1
svcrpc: store gss mech in svc_cred

Store a pointer to the gss mechanism used in the rq_cred and cl_cred.
This will make it easier to enforce SP4_MACH_CRED, which needs to
compare the mechanism used on the exchange_id with that used on
protected operations.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c
include/linux/sunrpc/gss_api.h
include/linux/sunrpc/svcauth.h
net/sunrpc/auth_gss/gss_mech_switch.c
net/sunrpc/auth_gss/svcauth_gss.c