Searched refs:kgid (Results 1 – 4 of 4) sorted by relevance
/kernel/ |
D | uid16.c | 120 kgid_t kgid; in groups16_to_user() local 123 kgid = group_info->gid[i]; in groups16_to_user() 124 group = high2lowgid(from_kgid_munged(user_ns, kgid)); in groups16_to_user() 138 kgid_t kgid; in groups16_from_user() local 144 kgid = make_kgid(user_ns, low2highgid(group)); in groups16_from_user() 145 if (!gid_valid(kgid)) in groups16_from_user() 148 group_info->gid[i] = kgid; in groups16_from_user()
|
D | groups.c | 63 kgid_t kgid; in groups_from_user() local 67 kgid = make_kgid(user_ns, gid); in groups_from_user() 68 if (!gid_valid(kgid)) in groups_from_user() 71 group_info->gid[i] = kgid; in groups_from_user()
|
D | sys.c | 438 kgid_t kgid; in __sys_setgid() local 440 kgid = make_kgid(ns, gid); in __sys_setgid() 441 if (!gid_valid(kgid)) in __sys_setgid() 451 new->gid = new->egid = new->sgid = new->fsgid = kgid; in __sys_setgid() 452 else if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->sgid)) in __sys_setgid() 453 new->egid = new->fsgid = kgid; in __sys_setgid() 906 kgid_t kgid; in __sys_setfsgid() local 911 kgid = make_kgid(old->user_ns, gid); in __sys_setfsgid() 912 if (!gid_valid(kgid)) in __sys_setfsgid() 919 if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->egid) || in __sys_setfsgid() [all …]
|
D | user_namespace.c | 490 gid_t from_kgid(struct user_namespace *targ, kgid_t kgid) in from_kgid() argument 493 return map_id_up(&targ->gid_map, __kgid_val(kgid)); in from_kgid() 514 gid_t from_kgid_munged(struct user_namespace *targ, kgid_t kgid) in from_kgid_munged() argument 517 gid = from_kgid(targ, kgid); in from_kgid_munged()
|