Home
last modified time | relevance | path

Searched refs:group_info (Results 1 – 4 of 4) sorted by relevance

/kernel/
Dgroups.c15 struct group_info *groups_alloc(int gidsetsize) in groups_alloc()
17 struct group_info *gi; in groups_alloc()
29 void groups_free(struct group_info *group_info) in groups_free() argument
31 kvfree(group_info); in groups_free()
38 const struct group_info *group_info) in groups_to_user() argument
42 unsigned int count = group_info->ngroups; in groups_to_user()
46 gid = from_kgid_munged(user_ns, group_info->gid[i]); in groups_to_user()
54 static int groups_from_user(struct group_info *group_info, in groups_from_user() argument
59 unsigned int count = group_info->ngroups; in groups_from_user()
71 group_info->gid[i] = kgid; in groups_from_user()
[all …]
Duid16.c115 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()
[all …]
Dcred.c38 static struct group_info init_groups = { .usage = ATOMIC_INIT(2) };
64 .group_info = &init_groups,
122 if (cred->group_info) in put_cred_rcu()
123 put_group_info(cred->group_info); in put_cred_rcu()
275 get_group_info(new->group_info); in prepare_creds()
634 struct group_info *ga, *gb; in cred_fscmp()
649 ga = a->group_info; in cred_fscmp()
650 gb = b->group_info; in cred_fscmp()
742 get_group_info(new->group_info); in prepare_kernel_cred()
Dauditsc.c524 result = groups_search(cred->group_info, f->gid); in audit_filter_rules()
527 result = !groups_search(cred->group_info, f->gid); in audit_filter_rules()
534 result = groups_search(cred->group_info, f->gid); in audit_filter_rules()
537 result = !groups_search(cred->group_info, f->gid); in audit_filter_rules()