/kernel/linux/linux-5.10/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() 618 struct group_info *ga, *gb; in cred_fscmp() 633 ga = a->group_info; in cred_fscmp() 634 gb = b->group_info; in cred_fscmp() 706 get_group_info(new->group_info); in prepare_kernel_cred()
|
D | auditsc.c | 520 result = groups_search(cred->group_info, f->gid); in audit_filter_rules() 523 result = !groups_search(cred->group_info, f->gid); in audit_filter_rules() 530 result = groups_search(cred->group_info, f->gid); in audit_filter_rules() 533 result = !groups_search(cred->group_info, f->gid); in audit_filter_rules()
|
/kernel/linux/linux-5.10/include/linux/ |
D | cred.h | 25 struct group_info { struct 40 static inline struct group_info *get_group_info(struct group_info *gi) in get_group_info() 50 #define put_group_info(group_info) \ argument 52 if (atomic_dec_and_test(&(group_info)->usage)) \ 53 groups_free(group_info); \ 56 extern struct group_info init_groups; 58 extern struct group_info *groups_alloc(int); 59 extern void groups_free(struct group_info *); 63 extern int groups_search(const struct group_info *, kgid_t); 65 extern int set_current_groups(struct group_info *); [all …]
|
D | init_task.h | 28 extern struct group_info init_groups;
|
/kernel/linux/linux-5.10/drivers/accesstokenid/ |
D | access_tokenid.c | 59 struct group_info *group_info; in check_permission_for_ftokenid() local 71 group_info = get_current_groups(); in check_permission_for_ftokenid() 72 for (i = 0; i < group_info->ngroups; i++) { in check_permission_for_ftokenid() 73 kgid_t gid = group_info->gid[i]; in check_permission_for_ftokenid() 76 put_group_info(group_info); in check_permission_for_ftokenid() 81 put_group_info(group_info); in check_permission_for_ftokenid()
|
/kernel/linux/linux-5.10/net/sunrpc/ |
D | auth_unix.c | 83 if (acred->cred->group_info != NULL) in unx_match() 84 groups = acred->cred->group_info->ngroups; in unx_match() 87 if (cred->cr_cred->group_info == NULL) in unx_match() 89 if (groups != cred->cr_cred->group_info->ngroups) in unx_match() 93 if (!gid_eq(cred->cr_cred->group_info->gid[i], acred->cred->group_info->gid[i])) in unx_match() 109 struct group_info *gi = cred->cr_cred->group_info; in unx_marshal()
|
D | svcauth_unix.c | 418 struct group_info *gi; 640 static struct group_info *unix_gid_find(kuid_t uid, struct svc_rqst *rqstp) in unix_gid_find() 643 struct group_info *gi; in unix_gid_find() 672 struct group_info *gi; in svcauth_unix_set_client()
|
/kernel/linux/linux-5.10/fs/nfsd/ |
D | filecache.c | 872 if (c1->group_info == NULL || c2->group_info == NULL) in nfsd_match_cred() 873 return c1->group_info == c2->group_info; in nfsd_match_cred() 874 if (c1->group_info->ngroups != c2->group_info->ngroups) in nfsd_match_cred() 876 for (i = 0; i < c1->group_info->ngroups; i++) { in nfsd_match_cred() 877 if (!gid_eq(c1->group_info->gid[i], c2->group_info->gid[i])) in nfsd_match_cred()
|
D | auth.c | 23 struct group_info *rqgi; in nfsd_setuser() 24 struct group_info *gi; in nfsd_setuser()
|
D | nfs4state.c | 2210 static bool groups_equal(struct group_info *g1, struct group_info *g2) in groups_equal()
|
/kernel/linux/linux-5.10/net/netfilter/ |
D | xt_owner.c | 97 struct group_info *gi = filp->f_cred->group_info; in owner_mt()
|
/kernel/linux/linux-5.10/fs/proc/ |
D | array.c | 155 struct group_info *group_info; in task_state() local 203 group_info = cred->group_info; in task_state() 204 for (g = 0; g < group_info->ngroups; g++) in task_state() 206 from_kgid_munged(user_ns, group_info->gid[g])); in task_state()
|
/kernel/linux/linux-5.10/security/keys/ |
D | permission.c | 67 ret = groups_search(cred->group_info, key->gid); in key_task_permission()
|
D | process_keys.c | 930 new->group_info = get_group_info(old->group_info); in key_change_session_keyring()
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | ping.c | 257 struct group_info *group_info; in ping_init_sock() local 269 group_info = get_current_groups(); in ping_init_sock() 270 for (i = 0; i < group_info->ngroups; i++) { in ping_init_sock() 271 kgid_t gid = group_info->gid[i]; in ping_init_sock() 280 put_group_info(group_info); in ping_init_sock()
|
/kernel/linux/linux-5.10/include/linux/sunrpc/ |
D | svcauth.h | 24 struct group_info *cr_group_info;
|
/kernel/linux/linux-5.10/fs/ext4/ |
D | mballoc.c | 2687 struct ext4_group_info ***group_info; in ext4_mb_add_groupinfo() local 2690 group_info = rcu_dereference(sbi->s_group_info); in ext4_mb_add_groupinfo() 2691 kfree(group_info[idx]); in ext4_mb_add_groupinfo() 2692 group_info[idx] = NULL; in ext4_mb_add_groupinfo() 2706 struct ext4_group_info ***group_info; in ext4_mb_init_backend() local 2771 group_info = rcu_dereference(sbi->s_group_info); in ext4_mb_init_backend() 2773 kfree(group_info[i]); in ext4_mb_init_backend() 2967 struct ext4_group_info *grinfo, ***group_info; in ext4_mb_release() local 2989 group_info = rcu_dereference(sbi->s_group_info); in ext4_mb_release() 2991 kfree(group_info[i]); in ext4_mb_release() [all …]
|
/kernel/linux/linux-5.10/sound/pci/asihpi/ |
D | hpifunc.c | 823 *poutstream_map = hr.u.d.u.group_info.outstream_group_map; in hpi_outstream_group_get_map() 825 *pinstream_map = hr.u.d.u.group_info.instream_group_map; in hpi_outstream_group_get_map() 1181 *poutstream_map = hr.u.d.u.group_info.outstream_group_map; in hpi_instream_group_get_map() 1183 *pinstream_map = hr.u.d.u.group_info.instream_group_map; in hpi_instream_group_get_map()
|
D | hpi_internal.h | 761 } group_info; member
|
/kernel/linux/linux-5.10/Documentation/security/ |
D | credentials.rst | 260 2. the reference count on the group_info struct it points to may be changed; 348 struct group_info *get_current_groups(void);
|
/kernel/linux/linux-5.10/net/core/ |
D | sock.c | 1282 static int groups_to_user(gid_t __user *dst, const struct group_info *src) in groups_to_user() 1460 n = cred->group_info->ngroups; in sock_getsockopt() 1468 ret = groups_to_user((gid_t __user *)optval, cred->group_info); in sock_getsockopt()
|
/kernel/linux/linux-5.10/fs/ |
D | io_uring.c | 9130 struct group_info *gi; in io_uring_show_cred() 9145 gi = cred->group_info; in io_uring_show_cred()
|