Lines Matching defs:cred
71 unx_destroy_cred(struct rpc_cred *cred)
73 call_rcu(&cred->cr_rcu, unx_free_cred_callback);
80 unx_match(struct auth_cred *acred, struct rpc_cred *cred, int flags)
85 if (cred->cr_cred == acred->cred)
88 if (!uid_eq(cred->cr_cred->fsuid, acred->cred->fsuid) || !gid_eq(cred->cr_cred->fsgid, acred->cred->fsgid))
91 if (acred->cred->group_info != NULL)
92 groups = acred->cred->group_info->ngroups;
95 if (cred->cr_cred->group_info == NULL)
97 if (groups != cred->cr_cred->group_info->ngroups)
101 if (!gid_eq(cred->cr_cred->group_info->gid[i], acred->cred->group_info->gid[i]))
114 struct rpc_cred *cred = task->tk_rqstp->rq_cred;
117 struct group_info *gi = cred->cr_cred->group_info;
135 *p++ = cpu_to_be32(from_kuid_munged(userns, cred->cr_cred->fsuid));
136 *p++ = cpu_to_be32(from_kgid_munged(userns, cred->cr_cred->fsgid));