/kernel/linux/linux-5.10/net/sunrpc/ |
H A D | auth_unix.c | 110 struct user_namespace *userns = clnt->cl_cred ? in unx_marshal() 111 clnt->cl_cred->user_ns : &init_user_ns; in unx_marshal()
|
H A D | clnt.c | 393 clnt->cl_cred = get_cred(args->cred); in rpc_new_client() 441 put_cred(clnt->cl_cred); in rpc_new_client() 667 .cred = clnt->cl_cred, in rpc_clone_client() 690 .cred = clnt->cl_cred, in rpc_clone_client_set_auth() 907 put_cred(clnt->cl_cred); in rpc_free_client() 971 .cred = old->cl_cred, in rpc_bind_new_program()
|
H A D | rpcb_clnt.c | 708 clnt->cl_cred); in rpcb_getport_async()
|
/kernel/linux/linux-6.6/net/sunrpc/ |
H A D | auth_unix.c | 118 struct user_namespace *userns = clnt->cl_cred ? in unx_marshal() 119 clnt->cl_cred->user_ns : &init_user_ns; in unx_marshal()
|
H A D | clnt.c | 397 clnt->cl_cred = get_cred(args->cred); in rpc_new_client() 447 put_cred(clnt->cl_cred); in rpc_new_client() 687 .cred = clnt->cl_cred, in rpc_clone_client() 709 .cred = clnt->cl_cred, in rpc_clone_client_set_auth() 993 put_cred(clnt->cl_cred); in rpc_free_client() 1055 .cred = old->cl_cred, in rpc_bind_new_program()
|
H A D | rpcb_clnt.c | 733 clnt->cl_cred, in rpcb_getport_async()
|
/kernel/linux/linux-5.10/fs/nfsd/ |
H A D | nfs4callback.c | 867 client->cl_principal = clp->cl_cred.cr_targ_princ ? in get_backchannel_cred() 868 clp->cl_cred.cr_targ_princ : "nfs"; in get_backchannel_cred() 907 if (!clp->cl_cred.cr_principal && in setup_callback_client() 908 (clp->cl_cred.cr_flavor >= RPC_AUTH_GSS_KRB5)) { in setup_callback_client() 912 args.client_name = clp->cl_cred.cr_principal; in setup_callback_client() 915 args.authflavor = clp->cl_cred.cr_flavor; in setup_callback_client()
|
H A D | nfs4recover.c | 1159 if (clp->cl_cred.cr_raw_principal) in nfsd4_cld_create_v2() 1160 principal = clp->cl_cred.cr_raw_principal; in nfsd4_cld_create_v2() 1161 else if (clp->cl_cred.cr_principal) in nfsd4_cld_create_v2() 1162 principal = clp->cl_cred.cr_principal; in nfsd4_cld_create_v2() 1366 if (clp->cl_cred.cr_raw_principal) in nfsd4_cld_check_v2() 1367 principal = clp->cl_cred.cr_raw_principal; in nfsd4_cld_check_v2() 1368 else if (clp->cl_cred.cr_principal) in nfsd4_cld_check_v2() 1369 principal = clp->cl_cred.cr_principal; in nfsd4_cld_check_v2()
|
H A D | nfs4state.c | 2009 free_svc_cred(&clp->cl_cred); in __free_client() 2285 if (cl->cl_cred.cr_gss_mech != cr->cr_gss_mech) in nfsd4_mach_creds_match() 2289 if (cl->cl_cred.cr_raw_principal) in nfsd4_mach_creds_match() 2290 return 0 == strcmp(cl->cl_cred.cr_raw_principal, in nfsd4_mach_creds_match() 2294 return 0 == strcmp(cl->cl_cred.cr_principal, cr->cr_principal); in nfsd4_mach_creds_match() 2732 ret = copy_cred(&clp->cl_cred, &rqstp->rq_cred); in create_client() 3133 if (!new->cl_cred.cr_principal && in nfsd4_exchange_id() 3134 !new->cl_cred.cr_raw_principal) { in nfsd4_exchange_id() 3153 bool creds_match = same_creds(&conf->cl_cred, &rqstp->rq_cred); in nfsd4_exchange_id() 3424 if (!same_creds(&unconf->cl_cred, in nfsd4_create_session() [all...] |
H A D | state.h | 329 struct svc_cred cl_cred; /* setclientid principal */ member
|
/kernel/linux/linux-6.6/fs/nfsd/ |
H A D | nfs4callback.c | 938 client->cl_principal = clp->cl_cred.cr_targ_princ ? in get_backchannel_cred() 939 clp->cl_cred.cr_targ_princ : "nfs"; in get_backchannel_cred() 978 if (!clp->cl_cred.cr_principal && in setup_callback_client() 979 (clp->cl_cred.cr_flavor >= RPC_AUTH_GSS_KRB5)) { in setup_callback_client() 983 args.client_name = clp->cl_cred.cr_principal; in setup_callback_client() 986 args.authflavor = clp->cl_cred.cr_flavor; in setup_callback_client()
|
H A D | nfs4recover.c | 1159 if (clp->cl_cred.cr_raw_principal) in nfsd4_cld_create_v2() 1160 principal = clp->cl_cred.cr_raw_principal; in nfsd4_cld_create_v2() 1161 else if (clp->cl_cred.cr_principal) in nfsd4_cld_create_v2() 1162 principal = clp->cl_cred.cr_principal; in nfsd4_cld_create_v2() 1366 if (clp->cl_cred.cr_raw_principal) in nfsd4_cld_check_v2() 1367 principal = clp->cl_cred.cr_raw_principal; in nfsd4_cld_check_v2() 1368 else if (clp->cl_cred.cr_principal) in nfsd4_cld_check_v2() 1369 principal = clp->cl_cred.cr_principal; in nfsd4_cld_check_v2()
|
H A D | nfs4state.c | 2137 free_svc_cred(&clp->cl_cred); in __free_client() 2417 if (cl->cl_cred.cr_gss_mech != cr->cr_gss_mech) in nfsd4_mach_creds_match() 2421 if (cl->cl_cred.cr_raw_principal) in nfsd4_mach_creds_match() 2422 return 0 == strcmp(cl->cl_cred.cr_raw_principal, in nfsd4_mach_creds_match() 2426 return 0 == strcmp(cl->cl_cred.cr_principal, cr->cr_principal); in nfsd4_mach_creds_match() 2916 ret = copy_cred(&clp->cl_cred, &rqstp->rq_cred); in create_client() 3327 if (!new->cl_cred.cr_principal && in nfsd4_exchange_id() 3328 !new->cl_cred.cr_raw_principal) { in nfsd4_exchange_id() 3348 bool creds_match = same_creds(&conf->cl_cred, &rqstp->rq_cred); in nfsd4_exchange_id() 3629 if (!same_creds(&unconf->cl_cred, in nfsd4_create_session() [all...] |
H A D | state.h | 352 struct svc_cred cl_cred; /* setclientid principal */ member
|
H A D | trace.h | 792 __entry->cl_flavor = clp->cl_cred.cr_flavor; 853 __entry->flavor = clp->cl_cred.cr_flavor;
|
/kernel/linux/linux-5.10/include/linux/sunrpc/ |
H A D | clnt.h | 81 const struct cred *cl_cred; member
|
/kernel/linux/linux-6.6/include/linux/sunrpc/ |
H A D | clnt.h | 93 const struct cred *cl_cred; member
|
/kernel/linux/linux-5.10/fs/nfs/ |
H A D | super.c | 1164 if (old->client && old->client->cl_cred) in nfs_compare_userns() 1165 oldns = old->client->cl_cred->user_ns; in nfs_compare_userns() 1166 if (new->client && new->client->cl_cred) in nfs_compare_userns() 1167 newns = new->client->cl_cred->user_ns; in nfs_compare_userns()
|
H A D | nfs2xdr.c | 81 if (clnt && clnt->cl_cred) in rpc_userns() 82 return clnt->cl_cred->user_ns; in rpc_userns()
|
H A D | nfs4idmap.c | 466 idmap->user_ns = get_user_ns(clp->cl_rpcclient->cl_cred->user_ns); in nfs_idmap_new()
|
H A D | nfs3xdr.c | 110 if (clnt && clnt->cl_cred) in rpc_userns() 111 return clnt->cl_cred->user_ns; in rpc_userns()
|
/kernel/linux/linux-6.6/fs/nfs/ |
H A D | super.c | 1190 if (old->client && old->client->cl_cred) in nfs_compare_userns() 1191 oldns = old->client->cl_cred->user_ns; in nfs_compare_userns() 1192 if (new->client && new->client->cl_cred) in nfs_compare_userns() 1193 newns = new->client->cl_cred->user_ns; in nfs_compare_userns()
|
H A D | nfs2xdr.c | 82 if (clnt && clnt->cl_cred) in rpc_userns() 83 return clnt->cl_cred->user_ns; in rpc_userns()
|
H A D | nfs4idmap.c | 466 idmap->user_ns = get_user_ns(clp->cl_rpcclient->cl_cred->user_ns); in nfs_idmap_new()
|
H A D | nfs3xdr.c | 112 if (clnt && clnt->cl_cred) in rpc_userns() 113 return clnt->cl_cred->user_ns; in rpc_userns()
|