Lines Matching refs:sgid
413 (current->sgid == egid) || in sys_setregid()
427 current->sgid = new_egid; in sys_setregid()
450 current->gid = current->egid = current->sgid = current->fsgid = gid; in sys_setgid()
452 else if ((gid == current->gid) || (gid == current->sgid)) in sys_setgid()
694 asmlinkage long sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid) in sys_setresgid() argument
698 (rgid != current->egid) && (rgid != current->sgid)) in sys_setresgid()
701 (egid != current->egid) && (egid != current->sgid)) in sys_setresgid()
703 if ((sgid != (gid_t) -1) && (sgid != current->gid) && in sys_setresgid()
704 (sgid != current->egid) && (sgid != current->sgid)) in sys_setresgid()
718 if (sgid != (gid_t) -1) in sys_setresgid()
719 current->sgid = sgid; in sys_setresgid()
723 asmlinkage long sys_getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid) in sys_getresgid() argument
729 retval = put_user(current->sgid, sgid); in sys_getresgid()
789 gid == current->sgid || gid == current->fsgid || in sys_setfsgid()