Home
last modified time | relevance | path

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

/linux-4.1.27/fs/nfsd/
Dauth.c13 if (f->pseudoflavor == rqstp->rq_cred.cr_flavor) in nfsexp_flags()
36 new->fsuid = rqstp->rq_cred.cr_uid; in nfsd_setuser()
37 new->fsgid = rqstp->rq_cred.cr_gid; in nfsd_setuser()
39 rqgi = rqstp->rq_cred.cr_group_info; in nfsd_setuser()
Dnfs4idmap.c610 if (nfs4_disable_idmapping && rqstp->rq_cred.cr_flavor < RPC_AUTH_GSS) in do_name_to_id()
623 if (nfs4_disable_idmapping && rqstp->rq_cred.cr_flavor < RPC_AUTH_GSS) in encode_name_from_id()
Dexport.c948 if (f->pseudoflavor == rqstp->rq_cred.cr_flavor) in check_nfsd_access()
953 if (rqstp->rq_cred.cr_flavor == RPC_AUTH_NULL || in check_nfsd_access()
954 rqstp->rq_cred.cr_flavor == RPC_AUTH_UNIX) in check_nfsd_access()
Dnfs4state.c1934 struct svc_cred *cr = &rqstp->rq_cred; in svc_rqst_integrity_protected()
1946 struct svc_cred *cr = &rqstp->rq_cred; in mach_creds_match()
2019 ret = copy_cred(&clp->cl_cred, &rqstp->rq_cred); in create_client()
2362 bool creds_match = same_creds(&conf->cl_cred, &rqstp->rq_cred); in nfsd4_exchange_id()
2629 if (!same_creds(&unconf->cl_cred, &rqstp->rq_cred) || in nfsd4_create_session()
3103 if (!same_creds(&conf->cl_cred, &rqstp->rq_cred)) { in nfsd4_setclientid()
3163 if (unconf && !same_creds(&unconf->cl_cred, &rqstp->rq_cred)) in nfsd4_setclientid_confirm()
3165 if (conf && !same_creds(&conf->cl_cred, &rqstp->rq_cred)) in nfsd4_setclientid_confirm()
/linux-4.1.27/net/sunrpc/
Dauth.c706 if (req->rq_cred != NULL) in rpcauth_bindcred()
707 put_rpccred(req->rq_cred); in rpcauth_bindcred()
708 req->rq_cred = new; in rpcauth_bindcred()
751 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in rpcauth_marshcred()
762 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in rpcauth_checkverf()
783 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in rpcauth_wrap_req()
808 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in rpcauth_unwrap_resp()
825 cred = task->tk_rqstp->rq_cred; in rpcauth_refreshcred()
830 cred = task->tk_rqstp->rq_cred; in rpcauth_refreshcred()
845 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in rpcauth_invalcred()
[all …]
Dsvcauth_unix.c661 struct svc_cred *cred = &rqstp->rq_cred; in svcauth_unix_set_client()
729 struct svc_cred *cred = &rqstp->rq_cred; in svcauth_null_accept()
760 rqstp->rq_cred.cr_flavor = RPC_AUTH_NULL; in svcauth_null_accept()
770 if (rqstp->rq_cred.cr_group_info) in svcauth_null_release()
771 put_group_info(rqstp->rq_cred.cr_group_info); in svcauth_null_release()
772 rqstp->rq_cred.cr_group_info = NULL; in svcauth_null_release()
793 struct svc_cred *cred = &rqstp->rq_cred; in svcauth_unix_accept()
839 rqstp->rq_cred.cr_flavor = RPC_AUTH_UNIX; in svcauth_unix_accept()
855 if (rqstp->rq_cred.cr_group_info) in svcauth_unix_release()
856 put_group_info(rqstp->rq_cred.cr_group_info); in svcauth_unix_release()
[all …]
Dauth_unix.c147 struct unx_cred *cred = container_of(task->tk_rqstp->rq_cred, struct unx_cred, uc_base); in unx_marshal()
180 set_bit(RPCAUTH_CRED_UPTODATE, &task->tk_rqstp->rq_cred->cr_flags); in unx_refresh()
203 task->tk_rqstp->rq_cred->cr_auth->au_rslack = (size >> 2) + 2; in unx_validate()
Dauth_null.c80 set_bit(RPCAUTH_CRED_UPTODATE, &task->tk_rqstp->rq_cred->cr_flags); in nul_refresh()
Dxprt.c1290 if (req->rq_cred != NULL) in xprt_release()
1291 put_rpccred(req->rq_cred); in xprt_release()
Dclnt.c1584 unsigned int slack = task->tk_rqstp->rq_cred->cr_auth->au_cslack; in call_allocate()
/linux-4.1.27/net/sunrpc/auth_gss/
Dauth_gss.c421 struct gss_cred *gss_cred = container_of(task->tk_rqstp->rq_cred, in gss_upcall_callback()
560 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in gss_refresh_upcall()
1480 struct rpc_cred *cred = req->rq_cred; in gss_marshal()
1534 struct rpc_cred *oldcred = task->tk_rqstp->rq_cred; in gss_renew_cred()
1549 task->tk_rqstp->rq_cred = new; in gss_renew_cred()
1577 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in gss_refresh()
1588 cred = task->tk_rqstp->rq_cred; in gss_refresh()
1607 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in gss_validate()
1826 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in gss_wrap_req()
1938 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in gss_unwrap_resp()
Dsvcauth_gss.c1495 rqstp->rq_cred = rsci->cred; in svcauth_gss_accept()
1524 rqstp->rq_cred.cr_flavor = gss_svc_to_pseudoflavor( in svcauth_gss_accept()
1735 if (rqstp->rq_cred.cr_group_info) in svcauth_gss_release()
1736 put_group_info(rqstp->rq_cred.cr_group_info); in svcauth_gss_release()
1737 rqstp->rq_cred.cr_group_info = NULL; in svcauth_gss_release()
/linux-4.1.27/include/linux/sunrpc/
Dsvc.h237 struct svc_cred rq_cred; /* auth info */ member
Dxprt.h73 struct rpc_cred * rq_cred; /* Bound cred */ member
/linux-4.1.27/fs/nfs/
Dcallback.c420 char *p = rqstp->rq_cred.cr_principal; in check_gss_callback_principal()
Dnfs2xdr.c74 struct rpc_auth *auth = req->rq_cred->cr_auth; in prepare_reply_buffer()
Dnfs3xdr.c113 struct rpc_auth *auth = req->rq_cred->cr_auth; in prepare_reply_buffer()
Dnfs4xdr.c960 struct rpc_auth *auth = req->rq_cred->cr_auth; in encode_compound_hdr()
Dnfs4proc.c5032 sc->sc_cred = get_rpccred(task->tk_rqstp->rq_cred); in nfs4_setclientid_done()