Lines Matching defs:cred
5 #include <linux/cred.h>
118 void set_groups(struct cred *new, struct group_info *group_info)
136 struct cred *new;
137 const struct cred *old;
163 const struct cred *cred = current_cred();
170 i = cred->group_info->ngroups;
176 if (groups_to_user(grouplist, cred->group_info)) {
229 const struct cred *cred = current_cred();
232 if (!gid_eq(grp, cred->fsgid))
233 retval = groups_search(cred->group_info, grp);
241 const struct cred *cred = current_cred();
244 if (!gid_eq(grp, cred->egid))
245 retval = groups_search(cred->group_info, grp);