Searched refs:acred (Results 1 – 4 of 4) sorted by relevance
/net/sunrpc/ |
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… 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()
|
D | auth.c | 566 rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred, in rpcauth_lookup_credcache() argument 575 nr = auth->au_ops->hash_cred(acred, cache->hashbits); in rpcauth_lookup_credcache() 579 if (!entry->cr_ops->crmatch(acred, entry, flags)) in rpcauth_lookup_credcache() 590 new = auth->au_ops->crcreate(auth, acred, flags, gfp); in rpcauth_lookup_credcache() 598 if (!entry->cr_ops->crmatch(acred, entry, flags)) in rpcauth_lookup_credcache() 632 struct auth_cred acred; in rpcauth_lookupcred() local 636 memset(&acred, 0, sizeof(acred)); in rpcauth_lookupcred() 637 acred.cred = cred; in rpcauth_lookupcred() 638 ret = auth->au_ops->lookup_cred(auth, &acred, flags); in rpcauth_lookupcred() 644 rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred, in rpcauth_init_cred() argument [all …]
|
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
|
/net/sunrpc/auth_gss/ |
D | auth_gss.c | 1248 struct auth_cred acred = { in gss_dup_cred() local 1254 rpcauth_init_cred(&new->gc_base, &acred, in gss_dup_cred() 1358 gss_hash_cred(struct auth_cred *acred, unsigned int hashbits) in gss_hash_cred() argument 1360 return hash_64(from_kuid(&init_user_ns, acred->cred->fsuid), hashbits); in gss_hash_cred() 1367 gss_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in gss_lookup_cred() argument 1369 return rpcauth_lookup_credcache(auth, acred, flags, GFP_NOFS); in gss_lookup_cred() 1373 gss_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, gfp_t gfp) in gss_create_cred() argument 1382 rpcauth_init_cred(&cred->gc_base, acred, auth, &gss_credops); in gss_create_cred() 1389 cred->gc_principal = acred->principal; in gss_create_cred() 1487 gss_match(struct auth_cred *acred, struct rpc_cred *rc, int flags) in gss_match() argument [all …]
|