/kernel/ |
D | groups.c | 18 gi = kvmalloc(struct_size(gi, gid, gidsetsize), GFP_KERNEL_ACCOUNT); in groups_alloc() 45 gid_t gid; in groups_to_user() local 46 gid = from_kgid_munged(user_ns, group_info->gid[i]); in groups_to_user() 47 if (put_user(gid, grouplist+i)) in groups_to_user() 62 gid_t gid; in groups_from_user() local 64 if (get_user(gid, grouplist+i)) in groups_from_user() 67 kgid = make_kgid(user_ns, gid); in groups_from_user() 71 group_info->gid[i] = kgid; in groups_from_user() 86 sort(group_info->gid, group_info->ngroups, sizeof(*group_info->gid), in groups_sort() 103 if (gid_gt(grp, group_info->gid[mid])) in groups_search() [all …]
|
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 | 353 static int audit_compare_gid(kgid_t gid, in audit_compare_gid() argument 362 rc = audit_gid_comparator(gid, f->op, name->gid); in audit_compare_gid() 369 rc = audit_gid_comparator(gid, f->op, n->gid); in audit_compare_gid() 388 return audit_compare_gid(cred->gid, name, f, ctx); in audit_field_compare() 433 return audit_gid_comparator(cred->gid, f->op, cred->egid); in audit_field_compare() 435 return audit_gid_comparator(cred->gid, f->op, cred->sgid); in audit_field_compare() 437 return audit_gid_comparator(cred->gid, f->op, cred->fsgid); in audit_field_compare() 514 result = audit_gid_comparator(cred->gid, f->op, f->gid); in audit_filter_rules() 517 result = groups_search(cred->group_info, f->gid); in audit_filter_rules() 520 result = !groups_search(cred->group_info, f->gid); in audit_filter_rules() [all …]
|
D | sys.c | 390 if (gid_eq(old->gid, krgid) || in __sys_setregid() 393 new->gid = krgid; in __sys_setregid() 398 if (gid_eq(old->gid, kegid) || in __sys_setregid() 408 (egid != (gid_t) -1 && !gid_eq(kegid, old->gid))) in __sys_setregid() 433 long __sys_setgid(gid_t gid) in __sys_setgid() argument 441 kgid = make_kgid(ns, gid); in __sys_setgid() 452 new->gid = new->egid = new->sgid = new->fsgid = kgid; in __sys_setgid() 453 else if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->sgid)) in __sys_setgid() 469 SYSCALL_DEFINE1(setgid, gid_t, gid) in SYSCALL_DEFINE1() argument 471 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 | 50 .gid = GLOBAL_ROOT_GID, 517 if (!gid_eq(new->gid, old->gid) || in commit_creds() 663 if (gid_lt(ga->gid[g], gb->gid[g])) in cred_fscmp() 665 if (gid_gt(ga->gid[g], gb->gid[g])) in cred_fscmp() 861 from_kgid_munged(&init_user_ns, cred->gid), in dump_invalid_creds()
|
D | user_namespace.c | 476 kgid_t make_kgid(struct user_namespace *ns, gid_t gid) in make_kgid() argument 479 return KGIDT_INIT(map_id_down(&ns->gid_map, gid)); in make_kgid() 521 gid_t gid; in from_kgid_munged() local 522 gid = from_kgid(targ, kgid); in from_kgid_munged() 524 if (gid == (gid_t) -1) in from_kgid_munged() 525 gid = overflowgid; in from_kgid_munged() 526 return gid; in from_kgid_munged() 1180 kgid_t gid = make_kgid(ns->parent, id); in new_idmap_permitted() local 1182 gid_eq(gid, cred->egid)) in new_idmap_permitted()
|
D | audit.h | 82 kgid_t gid; member 138 kgid_t gid, egid, sgid, fsgid; member 161 kgid_t gid; member
|
D | auditfilter.c | 506 f->gid = make_kgid(current_user_ns(), f_val); in audit_data_to_entry() 507 if (!gid_valid(f->gid)) in audit_data_to_entry() 769 if (!gid_eq(a->fields[i].gid, b->fields[i].gid)) in audit_compare_rule() 1352 result = audit_gid_comparator(current_gid(), f->op, f->gid); in audit_filter()
|
D | tsacct.c | 63 stats->ac_gid = from_kgid_munged(user_ns, tcred->gid); in bacct_add_tsk()
|
D | ptrace.c | 324 caller_gid = cred->gid; in __ptrace_may_access() 332 gid_eq(caller_gid, tcred->gid)) in __ptrace_may_access()
|
D | acct.c | 517 ac.ac_gid = from_kgid_munged(file->f_cred->user_ns, orig_cred->gid); in do_acct_process()
|
D | audit.c | 2265 from_kgid(&init_user_ns, cred->gid), in audit_log_task_info()
|
/kernel/bpf/ |
D | helpers.c | 237 kgid_t gid; in BPF_CALL_0() local 242 current_uid_gid(&uid, &gid); in BPF_CALL_0() 243 return (u64) from_kgid(&init_user_ns, gid) << 32 | in BPF_CALL_0()
|
/kernel/sched/ |
D | fair.c | 1117 pid_t gid; member 1259 pid_t gid = 0; in task_numa_group_id() local 1264 gid = ng->gid; in task_numa_group_id() 1267 return gid; in task_numa_group_id() 2710 grp->gid = p->pid; in task_numa_group()
|