Method: Process::Sys#issetugid

Defined in:
process.c

#Process::Sys.issetugidBoolean (private)

Returns true if the process was created as a result of an execve(2) system call which had either of the setuid or setgid bits set (and extra privileges were given as a result) or if it has changed any of its real, effective or saved user or group IDs since it began execution.

Returns:

  • (Boolean)


5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
# File 'process.c', line 5674

static VALUE
p_sys_issetugid(VALUE obj)
{
    if (issetugid()) {
  return Qtrue;
    }
    else {
  return Qfalse;
    }
}