/kernel/linux/linux-5.10/net/sunrpc/ |
H A D | auth_unix.c | 44 unx_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in unx_lookup_cred() argument 48 rpcauth_init_cred(ret, acred, auth, &unix_credops); in unx_lookup_cred() 72 unx_match(struct auth_cred *acred, struct rpc_cred *cred, int flags) in unx_match() argument 77 if (cred->cr_cred == acred->cred) in unx_match() 80 if (!uid_eq(cred->cr_cred->fsuid, acred->cred->fsuid) || !gid_eq(cred->cr_cred->fsgid, acred->cred->fsgid)) in unx_match() 83 if (acred->cred->group_info != NULL) in unx_match() 84 groups = acred->cred->group_info->ngroups; in unx_match() 93 if (!gid_eq(cred->cr_cred->group_info->gid[i], acred->cred->group_info->gid[i])) in unx_match()
|
H A D | auth.c | 517 rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred, in rpcauth_lookup_credcache() argument 526 nr = auth->au_ops->hash_cred(acred, cache->hashbits); in rpcauth_lookup_credcache() 530 if (!entry->cr_ops->crmatch(acred, entry, flags)) in rpcauth_lookup_credcache() 541 new = auth->au_ops->crcreate(auth, acred, flags, gfp); in rpcauth_lookup_credcache() 549 if (!entry->cr_ops->crmatch(acred, entry, flags)) in rpcauth_lookup_credcache() 583 struct auth_cred acred; in rpcauth_lookupcred() local 587 memset(&acred, 0, sizeof(acred)); in rpcauth_lookupcred() 588 acred.cred = cred; in rpcauth_lookupcred() 589 ret = auth->au_ops->lookup_cred(auth, &acred, flag in rpcauth_lookupcred() 595 rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred, struct rpc_auth *auth, const struct rpc_credops *ops) rpcauth_init_cred() argument 613 struct auth_cred acred = { rpcauth_bind_root_cred() local 627 struct auth_cred acred = { rpcauth_bind_machine_cred() local 652 struct auth_cred acred = { rpcauth_bindcred() local [all...] |
H A D | auth_null.c | 37 nul_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in nul_lookup_cred() argument 54 nul_match(struct auth_cred *acred, struct rpc_cred *cred, int taskflags) in nul_match() argument
|
/kernel/linux/linux-6.6/net/sunrpc/ |
H A D | auth_unix.c | 44 struct auth_cred *acred, int flags) in unx_lookup_cred() 56 rpcauth_init_cred(ret, acred, auth, &unix_credops); in unx_lookup_cred() 80 unx_match(struct auth_cred *acred, struct rpc_cred *cred, int flags) in unx_match() argument 85 if (cred->cr_cred == acred->cred) in unx_match() 88 if (!uid_eq(cred->cr_cred->fsuid, acred->cred->fsuid) || !gid_eq(cred->cr_cred->fsgid, acred->cred->fsgid)) in unx_match() 91 if (acred->cred->group_info != NULL) in unx_match() 92 groups = acred->cred->group_info->ngroups; in unx_match() 101 if (!gid_eq(cred->cr_cred->group_info->gid[i], acred->cred->group_info->gid[i])) in unx_match() 43 unx_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) unx_lookup_cred() argument
|
H A D | auth.c | 514 rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred, in rpcauth_lookup_credcache() argument 523 nr = auth->au_ops->hash_cred(acred, cache->hashbits); in rpcauth_lookup_credcache() 527 if (!entry->cr_ops->crmatch(acred, entry, flags)) in rpcauth_lookup_credcache() 538 new = auth->au_ops->crcreate(auth, acred, flags, gfp); in rpcauth_lookup_credcache() 546 if (!entry->cr_ops->crmatch(acred, entry, flags)) in rpcauth_lookup_credcache() 580 struct auth_cred acred; in rpcauth_lookupcred() local 584 memset(&acred, 0, sizeof(acred)); in rpcauth_lookupcred() 585 acred.cred = cred; in rpcauth_lookupcred() 586 ret = auth->au_ops->lookup_cred(auth, &acred, flag in rpcauth_lookupcred() 592 rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred, struct rpc_auth *auth, const struct rpc_credops *ops) rpcauth_init_cred() argument 610 struct auth_cred acred = { rpcauth_bind_root_cred() local 626 struct auth_cred acred = { rpcauth_bind_machine_cred() local 653 struct auth_cred acred = { rpcauth_bindcred() local [all...] |
H A D | auth_null.c | 37 nul_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in nul_lookup_cred() argument 54 nul_match(struct auth_cred *acred, struct rpc_cred *cred, int taskflags) in nul_match() argument
|
H A D | auth_tls.c | 85 struct auth_cred *acred, int flags) in tls_lookup_cred() 94 static int tls_match(struct auth_cred *acred, struct rpc_cred *cred, int taskflags) in tls_match() argument 84 tls_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) tls_lookup_cred() argument
|
/kernel/linux/linux-5.10/net/sunrpc/auth_gss/ |
H A D | auth_gss.c | 1238 struct auth_cred acred = { in gss_dup_cred() local 1244 rpcauth_init_cred(&new->gc_base, &acred, in gss_dup_cred() 1348 gss_hash_cred(struct auth_cred *acred, unsigned int hashbits) in gss_hash_cred() argument 1350 return hash_64(from_kuid(&init_user_ns, acred->cred->fsuid), hashbits); in gss_hash_cred() 1357 gss_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in gss_lookup_cred() argument 1359 return rpcauth_lookup_credcache(auth, acred, flags, GFP_NOFS); in gss_lookup_cred() 1363 gss_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, gfp_t gfp) in gss_create_cred() argument 1372 rpcauth_init_cred(&cred->gc_base, acred, auth, &gss_credops); in gss_create_cred() 1379 cred->gc_principal = acred->principal; in gss_create_cred() 1477 gss_match(struct auth_cred *acred, struc argument 1596 struct auth_cred acred = { gss_renew_cred() local [all...] |
/kernel/linux/linux-6.6/net/sunrpc/auth_gss/ |
H A D | auth_gss.c | 1257 struct auth_cred acred = { in gss_dup_cred() local 1263 rpcauth_init_cred(&new->gc_base, &acred, in gss_dup_cred() 1367 gss_hash_cred(struct auth_cred *acred, unsigned int hashbits) in gss_hash_cred() argument 1369 return hash_64(from_kuid(&init_user_ns, acred->cred->fsuid), hashbits); in gss_hash_cred() 1376 struct auth_cred *acred, int flags) in gss_lookup_cred() 1378 return rpcauth_lookup_credcache(auth, acred, flags, in gss_lookup_cred() 1383 gss_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, gfp_t gfp) in gss_create_cred() argument 1392 rpcauth_init_cred(&cred->gc_base, acred, auth, &gss_credops); in gss_create_cred() 1399 cred->gc_principal = acred->principal; in gss_create_cred() 1497 gss_match(struct auth_cred *acred, struc argument 1375 gss_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) gss_lookup_cred() argument 1616 struct auth_cred acred = { gss_renew_cred() local [all...] |
/kernel/linux/linux-5.10/fs/nfs/ |
H A D | write.c | 1237 struct auth_cred acred = { in nfs_ctx_key_to_expire() local 1241 if (cred && !cred->cr_ops->crmatch(&acred, cred, 0)) { in nfs_ctx_key_to_expire() 1247 cred = auth->au_ops->lookup_cred(auth, &acred, 0); in nfs_ctx_key_to_expire()
|
/kernel/linux/linux-6.6/fs/nfs/ |
H A D | write.c | 1254 struct auth_cred acred = { in nfs_ctx_key_to_expire() local 1266 new = auth->au_ops->lookup_cred(auth, &acred, 0); in nfs_ctx_key_to_expire()
|