Lines Matching refs:krgid
366 kgid_t krgid, kegid; in __sys_setregid() local
368 krgid = make_kgid(ns, rgid); in __sys_setregid()
371 if ((rgid != (gid_t) -1) && !gid_valid(krgid)) in __sys_setregid()
383 if (gid_eq(old->gid, krgid) || in __sys_setregid()
384 gid_eq(old->egid, krgid) || in __sys_setregid()
386 new->gid = krgid; in __sys_setregid()
763 kgid_t krgid, kegid, ksgid; in __sys_setresgid() local
766 krgid = make_kgid(ns, rgid); in __sys_setresgid()
770 if ((rgid != (gid_t) -1) && !gid_valid(krgid)) in __sys_setresgid()
780 if ((rgid == (gid_t) -1 || gid_eq(krgid, old->gid)) && in __sys_setresgid()
786 rgid_new = rgid != (gid_t) -1 && !gid_eq(krgid, old->gid) && in __sys_setresgid()
787 !gid_eq(krgid, old->egid) && !gid_eq(krgid, old->sgid); in __sys_setresgid()
801 new->gid = krgid; in __sys_setresgid()