Lines Matching refs:acred
1238 struct auth_cred acred = {
1244 rpcauth_init_cred(&new->gc_base, &acred,
1348 gss_hash_cred(struct auth_cred *acred, unsigned int hashbits)
1350 return hash_64(from_kuid(&init_user_ns, acred->cred->fsuid), hashbits);
1357 gss_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags)
1359 return rpcauth_lookup_credcache(auth, acred, flags, GFP_NOFS);
1363 gss_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, gfp_t gfp)
1372 rpcauth_init_cred(&cred->gc_base, acred, auth, &gss_credops);
1379 cred->gc_principal = acred->principal;
1477 gss_match(struct auth_cred *acred, struct rpc_cred *rc, int flags)
1496 if (acred->principal != NULL) {
1499 ret = strcmp(acred->principal, gss_cred->gc_principal) == 0;
1503 ret = uid_eq(rc->cr_cred->fsuid, acred->cred->fsuid);
1596 struct auth_cred acred = {
1602 new = gss_lookup_cred(auth, &acred, RPCAUTH_LOOKUP_NEW);