android_kernel_samsung_sm8650/include/linux/sunrpc
NeilBrown 1de7eea929 SUNRPC: add side channel to use non-generic cred for rpc call.
The credential passed in rpc_message.rpc_cred is always a
generic credential except in one instance.
When gss_destroying_context() calls rpc_call_null(), it passes
a specific credential that it needs to destroy.
In this case the RPC acts *on* the credential rather than
being authorized by it.

This special case deserves explicit support and providing that will
mean that rpc_message.rpc_cred is *always* generic, allowing
some optimizations.

So add "tk_op_cred" to rpc_task and "rpc_op_cred" to the setup data.
Use this to pass the cred down from rpc_call_null(), and have
rpcauth_bindcred() notice it and bind it in place.

Credit to kernel test robot <fengguang.wu@intel.com> for finding
a bug in earlier version of this patch.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
2018-12-19 13:52:45 -05:00
..
addr.h
auth_gss.h
auth.h NFS/SUNRPC: don't lookup machine credential until rpcauth_bindcred(). 2018-12-19 13:52:45 -05:00
bc_xprt.h
cache.h SUNRPC: Replace the cache_detail->hash_lock with a regular spinlock 2018-10-29 16:58:04 -04:00
clnt.h NFS/SUNRPC: don't lookup machine credential until rpcauth_bindcred(). 2018-12-19 13:52:45 -05:00
debug.h
gss_api.h
gss_asn1.h
gss_err.h
gss_krb5_enctypes.h
gss_krb5.h NFS client bugfixes for Linux 4.20 2018-11-04 08:20:09 -08:00
metrics.h
msg_prot.h
rpc_pipe_fs.h
rpc_rdma.h
sched.h SUNRPC: add side channel to use non-generic cred for rpc call. 2018-12-19 13:52:45 -05:00
stats.h
svc_rdma.h svcrdma: Increase the default connection credit limit 2018-10-29 16:58:04 -04:00
svc_xprt.h
svc.h
svcauth_gss.h
svcauth.h SUNRPC: Add lockless lookup of the server's auth domain 2018-10-03 11:32:59 -04:00
svcsock.h
timer.h
types.h
xdr.h SUNRPC: Fix a memory leak in call_encode() 2018-12-02 09:43:57 -05:00
xprt.h
xprtmultipath.h
xprtrdma.h
xprtsock.h