Lines Matching refs:rgid
357 long __sys_setregid(gid_t rgid, gid_t egid) in __sys_setregid() argument
365 krgid = make_kgid(ns, rgid); in __sys_setregid()
368 if ((rgid != (gid_t) -1) && !gid_valid(krgid)) in __sys_setregid()
379 if (rgid != (gid_t) -1) { in __sys_setregid()
397 if (rgid != (gid_t) -1 || in __sys_setregid()
413 SYSCALL_DEFINE2(setregid, gid_t, rgid, gid_t, egid) in SYSCALL_DEFINE2() argument
415 return __sys_setregid(rgid, egid); in SYSCALL_DEFINE2()
741 long __sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid) in __sys_setresgid() argument
749 krgid = make_kgid(ns, rgid); in __sys_setresgid()
753 if ((rgid != (gid_t) -1) && !gid_valid(krgid)) in __sys_setresgid()
767 if (rgid != (gid_t) -1 && !gid_eq(krgid, old->gid) && in __sys_setresgid()
778 if (rgid != (gid_t) -1) in __sys_setresgid()
797 SYSCALL_DEFINE3(setresgid, gid_t, rgid, gid_t, egid, gid_t, sgid) in SYSCALL_DEFINE3() argument
799 return __sys_setresgid(rgid, egid, sgid); in SYSCALL_DEFINE3()
806 gid_t rgid, egid, sgid; in SYSCALL_DEFINE3() local
808 rgid = from_kgid_munged(cred->user_ns, cred->gid); in SYSCALL_DEFINE3()
812 retval = put_user(rgid, rgidp); in SYSCALL_DEFINE3()