Lines Matching refs:gid
375 if (gid_eq(old->gid, krgid) || in __sys_setregid()
378 new->gid = krgid; in __sys_setregid()
383 if (gid_eq(old->gid, kegid) || in __sys_setregid()
393 (egid != (gid_t) -1 && !gid_eq(kegid, old->gid))) in __sys_setregid()
414 long __sys_setgid(gid_t gid) in __sys_setgid() argument
422 kgid = make_kgid(ns, gid); in __sys_setgid()
433 new->gid = new->egid = new->sgid = new->fsgid = kgid; in __sys_setgid()
434 else if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->sgid)) in __sys_setgid()
446 SYSCALL_DEFINE1(setgid, gid_t, gid) in SYSCALL_DEFINE1() argument
448 return __sys_setgid(gid); in SYSCALL_DEFINE1()
741 if (rgid != (gid_t) -1 && !gid_eq(krgid, old->gid) && in __sys_setresgid()
744 if (egid != (gid_t) -1 && !gid_eq(kegid, old->gid) && in __sys_setresgid()
747 if (sgid != (gid_t) -1 && !gid_eq(ksgid, old->gid) && in __sys_setresgid()
753 new->gid = krgid; in __sys_setresgid()
778 rgid = from_kgid_munged(cred->user_ns, cred->gid); in SYSCALL_DEFINE3()
843 long __sys_setfsgid(gid_t gid) in __sys_setfsgid() argument
853 kgid = make_kgid(old->user_ns, gid); in __sys_setfsgid()
861 if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->egid) || in __sys_setfsgid()
878 SYSCALL_DEFINE1(setfsgid, gid_t, gid) in SYSCALL_DEFINE1() argument
880 return __sys_setfsgid(gid); in SYSCALL_DEFINE1()
1599 gid_eq(cred->gid, tcred->egid) && in check_prlimit_permission()
1600 gid_eq(cred->gid, tcred->sgid) && in check_prlimit_permission()
1601 gid_eq(cred->gid, tcred->gid)); in check_prlimit_permission()