/kernel/ |
D | groups.c | 50 gid_t gid; in groups_to_user() local 51 gid = from_kgid_munged(user_ns, group_info->gid[i]); in groups_to_user() 52 if (put_user(gid, grouplist+i)) in groups_to_user() 67 gid_t gid; in groups_from_user() local 69 if (get_user(gid, grouplist+i)) in groups_from_user() 72 kgid = make_kgid(user_ns, gid); in groups_from_user() 76 group_info->gid[i] = kgid; in groups_from_user() 91 sort(group_info->gid, group_info->ngroups, sizeof(*group_info->gid), in groups_sort() 108 if (gid_gt(grp, group_info->gid[mid])) in groups_search() 110 else if (gid_lt(grp, group_info->gid[mid])) in groups_search()
|
D | uid16.c | 43 SYSCALL_DEFINE1(setgid16, old_gid_t, gid) in SYSCALL_DEFINE1() argument 45 return __sys_setgid(low2highgid(gid)); in SYSCALL_DEFINE1() 93 rgid = high2lowgid(from_kgid_munged(cred->user_ns, cred->gid)); in SYSCALL_DEFINE3() 109 SYSCALL_DEFINE1(setfsgid16, old_gid_t, gid) in SYSCALL_DEFINE1() argument 111 return __sys_setfsgid(low2highgid(gid)); in SYSCALL_DEFINE1() 123 kgid = group_info->gid[i]; in groups16_to_user() 148 group_info->gid[i] = kgid; in groups16_from_user()
|
D | auditsc.c | 330 static int audit_compare_gid(kgid_t gid, in audit_compare_gid() argument 339 rc = audit_gid_comparator(gid, f->op, name->gid); in audit_compare_gid() 346 rc = audit_gid_comparator(gid, f->op, n->gid); in audit_compare_gid() 365 return audit_compare_gid(cred->gid, name, f, ctx); in audit_field_compare() 410 return audit_gid_comparator(cred->gid, f->op, cred->egid); in audit_field_compare() 412 return audit_gid_comparator(cred->gid, f->op, cred->sgid); in audit_field_compare() 414 return audit_gid_comparator(cred->gid, f->op, cred->fsgid); in audit_field_compare() 488 result = audit_gid_comparator(cred->gid, f->op, f->gid); in audit_filter_rules() 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() [all …]
|
D | sys.c | 375 if (gid_eq(old->gid, krgid) || in __sys_setregid() 378 new->gid = krgid; in __sys_setregid() 383 if (gid_eq(old->gid, kegid) || in __sys_setregid() 393 (egid != (gid_t) -1 && !gid_eq(kegid, old->gid))) in __sys_setregid() 414 long __sys_setgid(gid_t gid) in __sys_setgid() argument 422 kgid = make_kgid(ns, gid); in __sys_setgid() 433 new->gid = new->egid = new->sgid = new->fsgid = kgid; in __sys_setgid() 434 else if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->sgid)) in __sys_setgid() 446 SYSCALL_DEFINE1(setgid, gid_t, gid) in SYSCALL_DEFINE1() argument 448 return __sys_setgid(gid); in SYSCALL_DEFINE1() [all …]
|
D | uid16.h | 6 long __sys_setgid(gid_t gid); 12 long __sys_setfsgid(gid_t gid);
|
D | cred.c | 48 .gid = GLOBAL_ROOT_GID, 500 if (!gid_eq(new->gid, old->gid) || in commit_creds() 644 if (gid_lt(ga->gid[g], gb->gid[g])) in cred_fscmp() 646 if (gid_gt(ga->gid[g], gb->gid[g])) in cred_fscmp() 820 from_kgid_munged(&init_user_ns, cred->gid), in dump_invalid_creds()
|
D | user_namespace.c | 454 kgid_t make_kgid(struct user_namespace *ns, gid_t gid) in make_kgid() argument 457 return KGIDT_INIT(map_id_down(&ns->gid_map, gid)); in make_kgid() 499 gid_t gid; in from_kgid_munged() local 500 gid = from_kgid(targ, kgid); in from_kgid_munged() 502 if (gid == (gid_t) -1) in from_kgid_munged() 503 gid = overflowgid; in from_kgid_munged() 504 return gid; in from_kgid_munged() 1100 kgid_t gid = make_kgid(ns->parent, id); in new_idmap_permitted() local 1102 gid_eq(gid, cred->egid)) in new_idmap_permitted()
|
D | audit.h | 78 kgid_t gid; member 129 kgid_t gid, egid, sgid, fsgid; member 152 kgid_t gid; member
|
D | auditfilter.c | 497 f->gid = make_kgid(current_user_ns(), f->val); in audit_data_to_entry() 498 if (!gid_valid(f->gid)) in audit_data_to_entry() 754 if (!gid_eq(a->fields[i].gid, b->fields[i].gid)) in audit_compare_rule() 1338 result = audit_gid_comparator(current_gid(), f->op, f->gid); in audit_filter()
|
D | tsacct.c | 55 stats->ac_gid = from_kgid_munged(user_ns, tcred->gid); in bacct_add_tsk()
|
D | ptrace.c | 319 caller_gid = cred->gid; in __ptrace_may_access() 327 gid_eq(caller_gid, tcred->gid)) in __ptrace_may_access()
|
D | acct.c | 496 ac.ac_gid = from_kgid_munged(file->f_cred->user_ns, orig_cred->gid); in do_acct_process()
|
D | audit.c | 2140 from_kgid(&init_user_ns, cred->gid), in audit_log_task_info()
|
/kernel/bpf/ |
D | helpers.c | 175 kgid_t gid; in BPF_CALL_0() local 180 current_uid_gid(&uid, &gid); in BPF_CALL_0() 181 return (u64) from_kgid(&init_user_ns, gid) << 32 | in BPF_CALL_0()
|
/kernel/sched/ |
D | fair.c | 1073 pid_t gid; member 1214 pid_t gid = 0; in task_numa_group_id() local 1219 gid = ng->gid; in task_numa_group_id() 1222 return gid; in task_numa_group_id() 2265 grp->gid = p->pid; in task_numa_group()
|