Home
last modified time | relevance | path

Searched refs:rq_cred (Results 1 – 22 of 22) sorted by relevance

/Linux-v4.19/fs/nfsd/
Dauth.c14 if (f->pseudoflavor == rqstp->rq_cred.cr_flavor) in nfsexp_flags()
37 new->fsuid = rqstp->rq_cred.cr_uid; in nfsd_setuser()
38 new->fsgid = rqstp->rq_cred.cr_gid; in nfsd_setuser()
40 rqgi = rqstp->rq_cred.cr_group_info; in nfsd_setuser()
Dnfs4idmap.c607 if (nfs4_disable_idmapping && rqstp->rq_cred.cr_flavor < RPC_AUTH_GSS) in do_name_to_id()
620 if (nfs4_disable_idmapping && rqstp->rq_cred.cr_flavor < RPC_AUTH_GSS) in encode_name_from_id()
Dexport.c950 if (f->pseudoflavor == rqstp->rq_cred.cr_flavor) in check_nfsd_access()
955 if (rqstp->rq_cred.cr_flavor == RPC_AUTH_NULL || in check_nfsd_access()
956 rqstp->rq_cred.cr_flavor == RPC_AUTH_UNIX) in check_nfsd_access()
Dnfsfh.c95 if (rqstp->rq_cred.cr_flavor >= RPC_AUTH_GSS) in nfsd_originating_port_ok()
Dnfs4state.c2072 struct svc_cred *cr = &rqstp->rq_cred; in svc_rqst_integrity_protected()
2084 struct svc_cred *cr = &rqstp->rq_cred; in nfsd4_mach_creds_match()
2160 ret = copy_cred(&clp->cl_cred, &rqstp->rq_cred); in create_client()
2359 copy_cred(&slot->sl_cred, &resp->rqstp->rq_cred); in nfsd4_store_cache_entry()
2554 bool creds_match = same_creds(&conf->cl_cred, &rqstp->rq_cred); in nfsd4_exchange_id()
2826 if (!same_creds(&unconf->cl_cred, &rqstp->rq_cred) || in nfsd4_create_session()
3083 if (!same_creds(&rqstp->rq_cred, &slot->sl_cred)) in replay_matches_cache()
3340 if (!same_creds(&conf->cl_cred, &rqstp->rq_cred)) { in nfsd4_setclientid()
3404 if (unconf && !same_creds(&unconf->cl_cred, &rqstp->rq_cred)) in nfsd4_setclientid_confirm()
3406 if (conf && !same_creds(&conf->cl_cred, &rqstp->rq_cred)) in nfsd4_setclientid_confirm()
/Linux-v4.19/net/sunrpc/
Dauth.c706 put_rpccred(req->rq_cred); in rpcauth_bindcred()
707 req->rq_cred = new; in rpcauth_bindcred()
752 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in rpcauth_marshcred()
763 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in rpcauth_checkverf()
784 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in rpcauth_wrap_req()
809 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in rpcauth_unwrap_resp()
826 cred = task->tk_rqstp->rq_cred; in rpcauth_refreshcred()
831 cred = task->tk_rqstp->rq_cred; in rpcauth_refreshcred()
846 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in rpcauth_invalcred()
857 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in rpcauth_uptodatecred()
Dsvcauth_unix.c662 struct svc_cred *cred = &rqstp->rq_cred; in svcauth_unix_set_client()
730 struct svc_cred *cred = &rqstp->rq_cred; in svcauth_null_accept()
757 rqstp->rq_cred.cr_flavor = RPC_AUTH_NULL; in svcauth_null_accept()
767 if (rqstp->rq_cred.cr_group_info) in svcauth_null_release()
768 put_group_info(rqstp->rq_cred.cr_group_info); in svcauth_null_release()
769 rqstp->rq_cred.cr_group_info = NULL; in svcauth_null_release()
790 struct svc_cred *cred = &rqstp->rq_cred; in svcauth_unix_accept()
833 rqstp->rq_cred.cr_flavor = RPC_AUTH_UNIX; in svcauth_unix_accept()
849 if (rqstp->rq_cred.cr_group_info) in svcauth_unix_release()
850 put_group_info(rqstp->rq_cred.cr_group_info); in svcauth_unix_release()
[all …]
Dauth_unix.c152 struct unx_cred *cred = container_of(task->tk_rqstp->rq_cred, struct unx_cred, uc_base); in unx_marshal()
185 set_bit(RPCAUTH_CRED_UPTODATE, &task->tk_rqstp->rq_cred->cr_flags); in unx_refresh()
208 task->tk_rqstp->rq_cred->cr_auth->au_rslack = (size >> 2) + 2; in unx_validate()
Dauth_null.c81 set_bit(RPCAUTH_CRED_UPTODATE, &task->tk_rqstp->rq_cred->cr_flags); in nul_refresh()
Dsvcauth.c58 init_svc_cred(&rqstp->rq_cred); in svc_authenticate()
Dxprt.c1375 if (req->rq_cred != NULL) in xprt_release()
1376 put_rpccred(req->rq_cred); in xprt_release()
Dclnt.c1674 unsigned int slack = task->tk_rqstp->rq_cred->cr_auth->au_cslack; in call_allocate()
/Linux-v4.19/net/sunrpc/auth_gss/
Dauth_gss.c428 struct gss_cred *gss_cred = container_of(task->tk_rqstp->rq_cred, in gss_upcall_callback()
597 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in gss_refresh_upcall()
1527 struct rpc_cred *cred = req->rq_cred; in gss_marshal()
1581 struct rpc_cred *oldcred = task->tk_rqstp->rq_cred; in gss_renew_cred()
1596 task->tk_rqstp->rq_cred = new; in gss_renew_cred()
1624 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in gss_refresh()
1635 cred = task->tk_rqstp->rq_cred; in gss_refresh()
1654 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in gss_validate()
1879 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in gss_wrap_req()
1991 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in gss_unwrap_resp()
Dsvcauth_gss.c1514 rqstp->rq_cred = rsci->cred; in svcauth_gss_accept()
1543 rqstp->rq_cred.cr_flavor = gss_svc_to_pseudoflavor( in svcauth_gss_accept()
1756 if (rqstp->rq_cred.cr_group_info) in svcauth_gss_release()
1757 put_group_info(rqstp->rq_cred.cr_group_info); in svcauth_gss_release()
1758 rqstp->rq_cred.cr_group_info = NULL; in svcauth_gss_release()
/Linux-v4.19/include/linux/sunrpc/
Dsvc.h244 struct svc_cred rq_cred; /* auth info */ member
Dxprt.h77 struct rpc_cred * rq_cred; /* Bound cred */ member
/Linux-v4.19/fs/nfs/
Dcallback.c379 char *p = rqstp->rq_cred.cr_principal; in check_gss_callback_principal()
Dnfs2xdr.c75 struct rpc_auth *auth = req->rq_cred->cr_auth; in prepare_reply_buffer()
Dnfs3xdr.c114 struct rpc_auth *auth = req->rq_cred->cr_auth; in prepare_reply_buffer()
Dnfs4xdr.c1018 struct rpc_auth *auth = req->rq_cred->cr_auth; in encode_compound_hdr()
Dnfs4proc.c5858 sc->sc_cred = get_rpccred(task->tk_rqstp->rq_cred); in nfs4_setclientid_done()
/Linux-v4.19/net/sunrpc/xprtrdma/
Drpc_rdma.c755 ddp_allowed = !(rqst->rq_cred->cr_auth->au_flags & in rpcrdma_marshal_req()