Lines Matching refs:kgid
439 kgid_t kgid; in __sys_setgid() local
441 kgid = make_kgid(ns, gid); in __sys_setgid()
442 if (!gid_valid(kgid)) in __sys_setgid()
452 new->gid = new->egid = new->sgid = new->fsgid = kgid; in __sys_setgid()
453 else if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->sgid)) in __sys_setgid()
454 new->egid = new->fsgid = kgid; in __sys_setgid()
907 kgid_t kgid; in __sys_setfsgid() local
912 kgid = make_kgid(old->user_ns, gid); in __sys_setfsgid()
913 if (!gid_valid(kgid)) in __sys_setfsgid()
920 if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->egid) || in __sys_setfsgid()
921 gid_eq(kgid, old->sgid) || gid_eq(kgid, old->fsgid) || in __sys_setfsgid()
923 if (!gid_eq(kgid, old->fsgid)) { in __sys_setfsgid()
924 new->fsgid = kgid; in __sys_setfsgid()