Lines Matching refs:gid
622 if (gid_eq(old->gid, krgid) || in SYSCALL_DEFINE2()
625 new->gid = krgid; in SYSCALL_DEFINE2()
630 if (gid_eq(old->gid, kegid) || in SYSCALL_DEFINE2()
640 (egid != (gid_t) -1 && !gid_eq(kegid, old->gid))) in SYSCALL_DEFINE2()
656 SYSCALL_DEFINE1(setgid, gid_t, gid) in SYSCALL_DEFINE1() argument
664 kgid = make_kgid(ns, gid); in SYSCALL_DEFINE1()
675 new->gid = new->egid = new->sgid = new->fsgid = kgid; in SYSCALL_DEFINE1()
676 else if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->sgid)) in SYSCALL_DEFINE1()
961 if (rgid != (gid_t) -1 && !gid_eq(krgid, old->gid) && in SYSCALL_DEFINE3()
964 if (egid != (gid_t) -1 && !gid_eq(kegid, old->gid) && in SYSCALL_DEFINE3()
967 if (sgid != (gid_t) -1 && !gid_eq(ksgid, old->gid) && in SYSCALL_DEFINE3()
973 new->gid = krgid; in SYSCALL_DEFINE3()
993 rgid = from_kgid_munged(cred->user_ns, cred->gid); in SYSCALL_DEFINE3()
1050 SYSCALL_DEFINE1(setfsgid, gid_t, gid) in SYSCALL_DEFINE1() argument
1060 kgid = make_kgid(old->user_ns, gid); in SYSCALL_DEFINE1()
1068 if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->egid) || in SYSCALL_DEFINE1()
1694 gid_eq(cred->gid, tcred->egid) && in check_prlimit_permission()
1695 gid_eq(cred->gid, tcred->sgid) && in check_prlimit_permission()
1696 gid_eq(cred->gid, tcred->gid)) in check_prlimit_permission()