Home
last modified time | relevance | path

Searched refs:gid (Results 1 – 14 of 14) sorted by relevance

/kernel/
Dgroups.c72 gid_t gid; in groups_to_user() local
73 gid = from_kgid_munged(user_ns, GROUP_AT(group_info, i)); in groups_to_user()
74 if (put_user(gid, grouplist+i)) in groups_to_user()
89 gid_t gid; in groups_from_user() local
91 if (get_user(gid, grouplist+i)) in groups_from_user()
94 kgid = make_kgid(user_ns, gid); in groups_from_user()
Duid16.c39 SYSCALL_DEFINE1(setgid16, old_gid_t, gid) in SYSCALL_DEFINE1() argument
41 return sys_setgid(low2highgid(gid)); in SYSCALL_DEFINE1()
90 rgid = high2lowgid(from_kgid_munged(cred->user_ns, cred->gid)); in SYSCALL_DEFINE3()
106 SYSCALL_DEFINE1(setfsgid16, old_gid_t, gid) in SYSCALL_DEFINE1() argument
108 return sys_setfsgid(low2highgid(gid)); in SYSCALL_DEFINE1()
Dauditsc.c336 static int audit_compare_gid(kgid_t gid, in audit_compare_gid() argument
345 rc = audit_gid_comparator(gid, f->op, name->gid); in audit_compare_gid()
352 rc = audit_gid_comparator(gid, f->op, n->gid); in audit_compare_gid()
371 return audit_compare_gid(cred->gid, name, f, ctx); in audit_field_compare()
412 return audit_gid_comparator(cred->gid, f->op, cred->egid); in audit_field_compare()
414 return audit_gid_comparator(cred->gid, f->op, cred->sgid); in audit_field_compare()
416 return audit_gid_comparator(cred->gid, f->op, cred->fsgid); in audit_field_compare()
489 result = audit_gid_comparator(cred->gid, f->op, f->gid); in audit_filter_rules()
492 result = in_group_p(f->gid); in audit_filter_rules()
495 result = !in_group_p(f->gid); in audit_filter_rules()
[all …]
Duser_namespace.c307 kgid_t make_kgid(struct user_namespace *ns, gid_t gid) in make_kgid() argument
310 return KGIDT_INIT(map_id_down(&ns->gid_map, gid)); in make_kgid()
352 gid_t gid; in from_kgid_munged() local
353 gid = from_kgid(targ, kgid); in from_kgid_munged()
355 if (gid == (gid_t) -1) in from_kgid_munged()
356 gid = overflowgid; in from_kgid_munged()
357 return gid; in from_kgid_munged()
831 kgid_t gid = make_kgid(ns->parent, id); in new_idmap_permitted() local
833 gid_eq(gid, cred->egid)) in new_idmap_permitted()
Dsys.c356 if (gid_eq(old->gid, krgid) || in SYSCALL_DEFINE2()
359 new->gid = krgid; in SYSCALL_DEFINE2()
364 if (gid_eq(old->gid, kegid) || in SYSCALL_DEFINE2()
374 (egid != (gid_t) -1 && !gid_eq(kegid, old->gid))) in SYSCALL_DEFINE2()
390 SYSCALL_DEFINE1(setgid, gid_t, gid) in SYSCALL_DEFINE1() argument
398 kgid = make_kgid(ns, gid); in SYSCALL_DEFINE1()
409 new->gid = new->egid = new->sgid = new->fsgid = kgid; in SYSCALL_DEFINE1()
410 else if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->sgid)) in SYSCALL_DEFINE1()
697 if (rgid != (gid_t) -1 && !gid_eq(krgid, old->gid) && in SYSCALL_DEFINE3()
700 if (egid != (gid_t) -1 && !gid_eq(kegid, old->gid) && in SYSCALL_DEFINE3()
[all …]
Daudit.h88 kgid_t gid; member
139 kgid_t gid, egid, sgid, fsgid; member
162 kgid_t gid; member
Dcred.c50 .gid = GLOBAL_ROOT_GID,
492 if (!gid_eq(new->gid, old->gid) || in commit_creds()
771 from_kgid_munged(&init_user_ns, cred->gid), in dump_invalid_creds()
Dauditfilter.c476 f->gid = make_kgid(current_user_ns(), f_val); in audit_data_to_entry()
477 if (!gid_valid(f->gid)) in audit_data_to_entry()
739 if (!gid_eq(a->fields[i].gid, b->fields[i].gid)) in audit_compare_rule()
1322 result = audit_gid_comparator(current_gid(), f->op, f->gid); in audit_filter_user_rules()
Dtsacct.c64 stats->ac_gid = from_kgid_munged(user_ns, tcred->gid); in bacct_add_tsk()
Dptrace.c293 caller_gid = cred->gid; in __ptrace_may_access()
301 gid_eq(caller_gid, tcred->gid)) in __ptrace_may_access()
Daudit.c1743 name->gid = inode->i_gid; in audit_copy_inode()
1799 from_kgid(&init_user_ns, n->gid), in audit_log_name()
1907 from_kgid(&init_user_ns, cred->gid), in audit_log_task_info()
Dacct.c493 ac.ac_gid = from_kgid_munged(file->f_cred->user_ns, orig_cred->gid); in do_acct_process()
/kernel/bpf/
Dhelpers.c145 kgid_t gid; in bpf_get_current_uid_gid() local
150 current_uid_gid(&uid, &gid); in bpf_get_current_uid_gid()
151 return (u64) from_kgid(&init_user_ns, gid) << 32 | in bpf_get_current_uid_gid()
/kernel/sched/
Dfair.c1035 pid_t gid; member
1060 return p->numa_group ? p->numa_group->gid : 0; in task_numa_group_id()
2125 grp->gid = p->pid; in task_numa_group()