Lines Matching refs:cred
63 unx_destroy_cred(struct rpc_cred *cred) in unx_destroy_cred() argument
65 call_rcu(&cred->cr_rcu, unx_free_cred_callback); in unx_destroy_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()
87 if (cred->cr_cred->group_info == NULL) in unx_match()
89 if (groups != cred->cr_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()
106 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in unx_marshal() local
109 struct group_info *gi = cred->cr_cred->group_info; in unx_marshal()
127 *p++ = cpu_to_be32(from_kuid_munged(userns, cred->cr_cred->fsuid)); in unx_marshal()
128 *p++ = cpu_to_be32(from_kgid_munged(userns, cred->cr_cred->fsgid)); in unx_marshal()