Lines Matching refs:kegid
363 kgid_t krgid, kegid; in __sys_setregid() local
366 kegid = make_kgid(ns, egid); in __sys_setregid()
370 if ((egid != (gid_t) -1) && !gid_valid(kegid)) in __sys_setregid()
388 if (gid_eq(old->gid, kegid) || in __sys_setregid()
389 gid_eq(old->egid, kegid) || in __sys_setregid()
390 gid_eq(old->sgid, kegid) || in __sys_setregid()
392 new->egid = kegid; in __sys_setregid()
398 (egid != (gid_t) -1 && !gid_eq(kegid, old->gid))) in __sys_setregid()
747 kgid_t krgid, kegid, ksgid; in __sys_setresgid() local
750 kegid = make_kgid(ns, egid); in __sys_setresgid()
755 if ((egid != (gid_t) -1) && !gid_valid(kegid)) in __sys_setresgid()
770 if (egid != (gid_t) -1 && !gid_eq(kegid, old->gid) && in __sys_setresgid()
771 !gid_eq(kegid, old->egid) && !gid_eq(kegid, old->sgid)) in __sys_setresgid()
781 new->egid = kegid; in __sys_setresgid()