Lines Matching refs:cred
63 unx_destroy_cred(struct rpc_cred *cred)
65 call_rcu(&cred->cr_rcu, unx_free_cred_callback);
72 unx_match(struct auth_cred *acred, struct rpc_cred *cred, int flags)
77 if (cred->cr_cred == acred->cred)
80 if (!uid_eq(cred->cr_cred->fsuid, acred->cred->fsuid) || !gid_eq(cred->cr_cred->fsgid, acred->cred->fsgid))
83 if (acred->cred->group_info != NULL)
84 groups = acred->cred->group_info->ngroups;
87 if (cred->cr_cred->group_info == NULL)
89 if (groups != cred->cr_cred->group_info->ngroups)
93 if (!gid_eq(cred->cr_cred->group_info->gid[i], acred->cred->group_info->gid[i]))
106 struct rpc_cred *cred = task->tk_rqstp->rq_cred;
109 struct group_info *gi = cred->cr_cred->group_info;
127 *p++ = cpu_to_be32(from_kuid_munged(userns, cred->cr_cred->fsuid));
128 *p++ = cpu_to_be32(from_kgid_munged(userns, cred->cr_cred->fsgid));