Lines Matching refs:kgid
429 kgid_t kgid; in __sys_setgid() local
431 kgid = make_kgid(ns, gid); in __sys_setgid()
432 if (!gid_valid(kgid)) in __sys_setgid()
442 new->gid = new->egid = new->sgid = new->fsgid = kgid; in __sys_setgid()
443 else if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->sgid)) in __sys_setgid()
444 new->egid = new->fsgid = kgid; in __sys_setgid()
878 kgid_t kgid; in __sys_setfsgid() local
883 kgid = make_kgid(old->user_ns, gid); in __sys_setfsgid()
884 if (!gid_valid(kgid)) in __sys_setfsgid()
891 if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->egid) || in __sys_setfsgid()
892 gid_eq(kgid, old->sgid) || gid_eq(kgid, old->fsgid) || in __sys_setfsgid()
894 if (!gid_eq(kgid, old->fsgid)) { in __sys_setfsgid()
895 new->fsgid = kgid; in __sys_setfsgid()