sunrpc: Extract target name into svc_cred
authorChuck Lever <chuck.lever@oracle.com>
Thu, 16 Aug 2018 16:05:59 +0000 (12:05 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 22 Aug 2018 22:32:07 +0000 (18:32 -0400)
commit9abdda5ddab8a899ca8c4b859ef0a7710f40e0dd
tree4045d8a30dcf6e4ff5fcf8f053d57f9c5305c9be
parenta1a237775ec8fd2694b9f8e451821fd168e730d8
sunrpc: Extract target name into svc_cred

NFSv4.0 callback needs to know the GSS target name the client used
when it established its lease. That information is available from
the GSS context created by gssproxy. Make it available in each
svc_cred.

Note this will also give us access to the real target service
principal name (which is typically "nfs", but spec does not require
that).

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c
include/linux/sunrpc/svcauth.h
net/sunrpc/auth_gss/gss_rpc_upcall.c