]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit00fcada838702b83f6daa292eb60eb718b073184
tree4045d8a30dcf6e4ff5fcf8f053d57f9c5305c9be
parenta8f91143fd6e321408fd3b9b3386bc4bc13453a1
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