Home
last modified time | relevance | path

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

/kernel/
Dgroups.c74 gid_t gid; in groups_to_user() local
75 gid = from_kgid_munged(user_ns, GROUP_AT(group_info, i)); in groups_to_user()
76 if (put_user(gid, grouplist+i)) in groups_to_user()
91 gid_t gid; in groups_from_user() local
93 if (get_user(gid, grouplist+i)) in groups_from_user()
96 kgid = make_kgid(user_ns, gid); in groups_from_user()
Dauditsc.c348 static int audit_compare_gid(kgid_t gid, in audit_compare_gid() argument
357 rc = audit_gid_comparator(gid, f->op, name->gid); in audit_compare_gid()
364 rc = audit_gid_comparator(gid, f->op, n->gid); in audit_compare_gid()
383 return audit_compare_gid(cred->gid, name, f, ctx); in audit_field_compare()
424 return audit_gid_comparator(cred->gid, f->op, cred->egid); in audit_field_compare()
426 return audit_gid_comparator(cred->gid, f->op, cred->sgid); in audit_field_compare()
428 return audit_gid_comparator(cred->gid, f->op, cred->fsgid); in audit_field_compare()
494 result = audit_gid_comparator(cred->gid, f->op, f->gid); in audit_filter_rules()
497 result = in_group_p(f->gid); in audit_filter_rules()
500 result = !in_group_p(f->gid); in audit_filter_rules()
[all …]
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()
Duser_namespace.c287 kgid_t make_kgid(struct user_namespace *ns, gid_t gid) in make_kgid() argument
290 return KGIDT_INIT(map_id_down(&ns->gid_map, gid)); in make_kgid()
332 gid_t gid; in from_kgid_munged() local
333 gid = from_kgid(targ, kgid); in from_kgid_munged()
335 if (gid == (gid_t) -1) in from_kgid_munged()
336 gid = overflowgid; in from_kgid_munged()
337 return gid; in from_kgid_munged()
805 kgid_t gid = make_kgid(ns->parent, id); in new_idmap_permitted() local
806 if (gid_eq(gid, file->f_cred->fsgid)) in new_idmap_permitted()
Dsys.c622 if (gid_eq(old->gid, krgid) || in SYSCALL_DEFINE2()
625 new->gid = krgid; in SYSCALL_DEFINE2()
630 if (gid_eq(old->gid, kegid) || in SYSCALL_DEFINE2()
640 (egid != (gid_t) -1 && !gid_eq(kegid, old->gid))) in SYSCALL_DEFINE2()
656 SYSCALL_DEFINE1(setgid, gid_t, gid) in SYSCALL_DEFINE1() argument
664 kgid = make_kgid(ns, gid); in SYSCALL_DEFINE1()
675 new->gid = new->egid = new->sgid = new->fsgid = kgid; in SYSCALL_DEFINE1()
676 else if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->sgid)) in SYSCALL_DEFINE1()
961 if (rgid != (gid_t) -1 && !gid_eq(krgid, old->gid) && in SYSCALL_DEFINE3()
964 if (egid != (gid_t) -1 && !gid_eq(kegid, old->gid) && in SYSCALL_DEFINE3()
[all …]
Daudit.h94 kgid_t gid; member
140 kgid_t gid, egid, sgid, fsgid; member
163 kgid_t gid; member
Dcred.c42 .gid = GLOBAL_ROOT_GID,
471 if (!gid_eq(new->gid, old->gid) || in commit_creds()
735 from_kgid_munged(&init_user_ns, cred->gid), in dump_invalid_creds()
Dauditfilter.c421 f->gid = INVALID_GID; in audit_data_to_entry()
452 f->gid = make_kgid(current_user_ns(), f->val); in audit_data_to_entry()
453 if (!gid_valid(f->gid)) in audit_data_to_entry()
673 if (!gid_eq(a->fields[i].gid, b->fields[i].gid)) in audit_compare_rule()
1229 result = audit_gid_comparator(current_gid(), f->op, f->gid); in audit_filter_user_rules()
Dptrace.c246 gid_eq(cred->gid, tcred->egid) && in __ptrace_may_access()
247 gid_eq(cred->gid, tcred->sgid) && in __ptrace_may_access()
248 gid_eq(cred->gid, tcred->gid)) in __ptrace_may_access()
Dtsacct.c65 stats->ac_gid = from_kgid_munged(user_ns, tcred->gid); in bacct_add_tsk()
Daudit.c1470 name->gid = inode->i_gid; in audit_copy_inode()
1526 from_kgid(&init_user_ns, n->gid), in audit_log_name()
1604 from_kgid(&init_user_ns, cred->gid), in audit_log_task_info()
Dacct.c511 ac.ac_gid = from_kgid_munged(file->f_cred->user_ns, orig_cred->gid); in do_acct_process()