]> 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)
commit0c11cbf1e40ad6c1808be2bac18d73d3a8a02cee
tree4045d8a30dcf6e4ff5fcf8f053d57f9c5305c9be
parent2e0079f1f8785110c0bea812a65870f99a1ab370
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