Lines Matching refs:group_info
115 struct group_info *group_info) in groups16_to_user() argument
122 for (i = 0; i < group_info->ngroups; i++) { in groups16_to_user()
123 kgid = group_info->gid[i]; in groups16_to_user()
132 static int groups16_from_user(struct group_info *group_info, in groups16_from_user() argument
140 for (i = 0; i < group_info->ngroups; i++) { in groups16_from_user()
148 group_info->gid[i] = kgid; in groups16_from_user()
162 i = cred->group_info->ngroups; in SYSCALL_DEFINE2()
168 if (groups16_to_user(grouplist, cred->group_info)) { in SYSCALL_DEFINE2()
179 struct group_info *group_info; in SYSCALL_DEFINE2() local
187 group_info = groups_alloc(gidsetsize); in SYSCALL_DEFINE2()
188 if (!group_info) in SYSCALL_DEFINE2()
190 retval = groups16_from_user(group_info, grouplist); in SYSCALL_DEFINE2()
192 put_group_info(group_info); in SYSCALL_DEFINE2()
196 groups_sort(group_info); in SYSCALL_DEFINE2()
197 retval = set_current_groups(group_info); in SYSCALL_DEFINE2()
198 put_group_info(group_info); in SYSCALL_DEFINE2()