Lines Matching refs:rgid
361 long __sys_setregid(gid_t rgid, gid_t egid) in __sys_setregid() argument
369 krgid = make_kgid(ns, rgid); in __sys_setregid()
372 if ((rgid != (gid_t) -1) && !gid_valid(krgid)) in __sys_setregid()
383 if (rgid != (gid_t) -1) { in __sys_setregid()
401 if (rgid != (gid_t) -1 || in __sys_setregid()
417 SYSCALL_DEFINE2(setregid, gid_t, rgid, gid_t, egid) in SYSCALL_DEFINE2() argument
419 return __sys_setregid(rgid, egid); in SYSCALL_DEFINE2()
737 long __sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid) in __sys_setresgid() argument
746 krgid = make_kgid(ns, rgid); in __sys_setresgid()
750 if ((rgid != (gid_t) -1) && !gid_valid(krgid)) in __sys_setresgid()
760 if ((rgid == (gid_t) -1 || gid_eq(krgid, old->gid)) && in __sys_setresgid()
766 rgid_new = rgid != (gid_t) -1 && !gid_eq(krgid, old->gid) && in __sys_setresgid()
780 if (rgid != (gid_t) -1) in __sys_setresgid()
799 SYSCALL_DEFINE3(setresgid, gid_t, rgid, gid_t, egid, gid_t, sgid) in SYSCALL_DEFINE3() argument
801 return __sys_setresgid(rgid, egid, sgid); in SYSCALL_DEFINE3()
808 gid_t rgid, egid, sgid; in SYSCALL_DEFINE3() local
810 rgid = from_kgid_munged(cred->user_ns, cred->gid); in SYSCALL_DEFINE3()
814 retval = put_user(rgid, rgidp); in SYSCALL_DEFINE3()