Lines Matching refs:kgid
444 kgid_t kgid; in __sys_setgid() local
446 kgid = make_kgid(ns, gid); in __sys_setgid()
447 if (!gid_valid(kgid)) in __sys_setgid()
457 new->gid = new->egid = new->sgid = new->fsgid = kgid; in __sys_setgid()
458 else if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->sgid)) in __sys_setgid()
459 new->egid = new->fsgid = kgid; in __sys_setgid()
912 kgid_t kgid; in __sys_setfsgid() local
917 kgid = make_kgid(old->user_ns, gid); in __sys_setfsgid()
918 if (!gid_valid(kgid)) in __sys_setfsgid()
925 if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->egid) || in __sys_setfsgid()
926 gid_eq(kgid, old->sgid) || gid_eq(kgid, old->fsgid) || in __sys_setfsgid()
928 if (!gid_eq(kgid, old->fsgid)) { in __sys_setfsgid()
929 new->fsgid = kgid; in __sys_setfsgid()