Lines Matching refs:acred
55 unx_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in unx_lookup_cred() argument
57 return rpcauth_lookup_credcache(auth, acred, flags); in unx_lookup_cred()
61 unx_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in unx_create_cred() argument
68 from_kuid(&init_user_ns, acred->uid), in unx_create_cred()
69 from_kgid(&init_user_ns, acred->gid)); in unx_create_cred()
74 rpcauth_init_cred(&cred->uc_base, acred, auth, &unix_credops); in unx_create_cred()
77 if (acred->group_info != NULL) in unx_create_cred()
78 groups = acred->group_info->ngroups; in unx_create_cred()
82 cred->uc_gid = acred->gid; in unx_create_cred()
84 cred->uc_gids[i] = GROUP_AT(acred->group_info, i); in unx_create_cred()
117 unx_match(struct auth_cred *acred, struct rpc_cred *rcred, int flags) in unx_match() argument
124 if (!uid_eq(cred->uc_uid, acred->uid) || !gid_eq(cred->uc_gid, acred->gid)) in unx_match()
127 if (acred->group_info != NULL) in unx_match()
128 groups = acred->group_info->ngroups; in unx_match()
132 if (!gid_eq(cred->uc_gids[i], GROUP_AT(acred->group_info, i))) in unx_match()