Lines Matching refs:rgid
395 asmlinkage long sys_setregid(gid_t rgid, gid_t egid) in sys_setregid() argument
402 if (rgid != (gid_t) -1) { in sys_setregid()
403 if ((old_rgid == rgid) || in sys_setregid()
404 (current->egid==rgid) || in sys_setregid()
406 new_rgid = rgid; in sys_setregid()
425 if (rgid != (gid_t) -1 || in sys_setregid()
694 asmlinkage long sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid) in sys_setresgid() argument
697 if ((rgid != (gid_t) -1) && (rgid != current->gid) && in sys_setresgid()
698 (rgid != current->egid) && (rgid != current->sgid)) in sys_setresgid()
716 if (rgid != (gid_t) -1) in sys_setresgid()
717 current->gid = rgid; in sys_setresgid()
723 asmlinkage long sys_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid) in sys_getresgid() argument
727 if (!(retval = put_user(current->gid, rgid)) && in sys_getresgid()