Home
last modified time | relevance | path

Searched refs:cl_cred (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.4/net/sunrpc/
Dauth_unix.c110 struct user_namespace *userns = clnt->cl_cred ? in unx_marshal()
111 clnt->cl_cred->user_ns : &init_user_ns; in unx_marshal()
Dclnt.c398 clnt->cl_cred = get_cred(args->cred); in rpc_new_client()
444 put_cred(clnt->cl_cred); in rpc_new_client()
668 .cred = clnt->cl_cred, in rpc_clone_client()
690 .cred = clnt->cl_cred, in rpc_clone_client_set_auth()
898 put_cred(clnt->cl_cred); in rpc_free_client()
963 .cred = old->cl_cred, in rpc_bind_new_program()
Drpcb_clnt.c754 clnt->cl_cred); in rpcb_getport_async()
/Linux-v5.4/fs/nfsd/
Dnfs4callback.c832 client->cl_principal = clp->cl_cred.cr_targ_princ ? in get_backchannel_cred()
833 clp->cl_cred.cr_targ_princ : "nfs"; in get_backchannel_cred()
872 if (!clp->cl_cred.cr_principal && in setup_callback_client()
873 (clp->cl_cred.cr_flavor >= RPC_AUTH_GSS_KRB5)) in setup_callback_client()
875 args.client_name = clp->cl_cred.cr_principal; in setup_callback_client()
878 args.authflavor = clp->cl_cred.cr_flavor; in setup_callback_client()
Dnfs4recover.c1168 if (clp->cl_cred.cr_raw_principal) in nfsd4_cld_create_v2()
1169 principal = clp->cl_cred.cr_raw_principal; in nfsd4_cld_create_v2()
1170 else if (clp->cl_cred.cr_principal) in nfsd4_cld_create_v2()
1171 principal = clp->cl_cred.cr_principal; in nfsd4_cld_create_v2()
1378 if (clp->cl_cred.cr_raw_principal) in nfsd4_cld_check_v2()
1379 principal = clp->cl_cred.cr_raw_principal; in nfsd4_cld_check_v2()
1380 else if (clp->cl_cred.cr_principal) in nfsd4_cld_check_v2()
1381 principal = clp->cl_cred.cr_principal; in nfsd4_cld_check_v2()
Dnfs4state.c1922 free_svc_cred(&clp->cl_cred); in __free_client()
2198 if (cl->cl_cred.cr_gss_mech != cr->cr_gss_mech) in nfsd4_mach_creds_match()
2202 if (cl->cl_cred.cr_raw_principal) in nfsd4_mach_creds_match()
2203 return 0 == strcmp(cl->cl_cred.cr_raw_principal, in nfsd4_mach_creds_match()
2207 return 0 == strcmp(cl->cl_cred.cr_principal, cr->cr_principal); in nfsd4_mach_creds_match()
2607 ret = copy_cred(&clp->cl_cred, &rqstp->rq_cred); in create_client()
3011 if (!new->cl_cred.cr_principal && in nfsd4_exchange_id()
3012 !new->cl_cred.cr_raw_principal) { in nfsd4_exchange_id()
3031 bool creds_match = same_creds(&conf->cl_cred, &rqstp->rq_cred); in nfsd4_exchange_id()
3302 if (!same_creds(&unconf->cl_cred, &rqstp->rq_cred) || in nfsd4_create_session()
[all …]
Dstate.h316 struct svc_cred cl_cred; /* setclientid principal */ member
/Linux-v5.4/include/linux/sunrpc/
Dclnt.h75 const struct cred *cl_cred; member
/Linux-v5.4/fs/nfs/
Dnfs2xdr.c81 if (clnt && clnt->cl_cred) in rpc_userns()
82 return clnt->cl_cred->user_ns; in rpc_userns()
Dsuper.c2535 if (old->client && old->client->cl_cred) in nfs_compare_userns()
2536 oldns = old->client->cl_cred->user_ns; in nfs_compare_userns()
2537 if (new->client && new->client->cl_cred) in nfs_compare_userns()
2538 newns = new->client->cl_cred->user_ns; in nfs_compare_userns()
Dnfs4idmap.c465 idmap->cred = get_cred(clp->cl_rpcclient->cl_cred); in nfs_idmap_new()
Dnfs3xdr.c109 if (clnt && clnt->cl_cred) in rpc_userns()
110 return clnt->cl_cred->user_ns; in rpc_userns()