Lines Matching refs:cred
4 #include <linux/cred.h>
164 int set_groups(struct cred *new, struct group_info *group_info)
184 struct cred *new;
204 const struct cred *cred = current_cred();
211 i = cred->group_info->ngroups;
217 if (groups_to_user(grouplist, cred->group_info)) {
261 const struct cred *cred = current_cred();
264 if (grp != cred->fsgid)
265 retval = groups_search(cred->group_info, grp);
273 const struct cred *cred = current_cred();
276 if (grp != cred->egid)
277 retval = groups_search(cred->group_info, grp);