Searched refs:group_info (Results 1 – 4 of 4) sorted by relevance
/kernel/ |
D | groups.c | 15 struct group_info *groups_alloc(int gidsetsize) in groups_alloc() 17 struct group_info *gi; in groups_alloc() 20 len = sizeof(struct group_info) + sizeof(kgid_t) * gidsetsize; in groups_alloc() 34 void groups_free(struct group_info *group_info) in groups_free() argument 36 kvfree(group_info); in groups_free() 43 const struct group_info *group_info) in groups_to_user() argument 47 unsigned int count = group_info->ngroups; in groups_to_user() 51 gid = from_kgid_munged(user_ns, group_info->gid[i]); in groups_to_user() 59 static int groups_from_user(struct group_info *group_info, in groups_from_user() argument 64 unsigned int count = group_info->ngroups; in groups_from_user() [all …]
|
D | uid16.c | 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() [all …]
|
D | cred.c | 36 struct group_info init_groups = { .usage = ATOMIC_INIT(2) }; 62 .group_info = &init_groups, 119 if (cred->group_info) in put_cred_rcu() 120 put_group_info(cred->group_info); in put_cred_rcu() 270 get_group_info(new->group_info); in prepare_creds() 615 struct group_info *ga, *gb; in cred_fscmp() 630 ga = a->group_info; in cred_fscmp() 631 gb = b->group_info; in cred_fscmp() 705 get_group_info(new->group_info); in prepare_kernel_cred()
|
D | auditsc.c | 491 result = groups_search(cred->group_info, f->gid); in audit_filter_rules() 494 result = !groups_search(cred->group_info, f->gid); in audit_filter_rules() 501 result = groups_search(cred->group_info, f->gid); in audit_filter_rules() 504 result = !groups_search(cred->group_info, f->gid); in audit_filter_rules()
|