Ruby Process::Sys Functions

EditRocket provides the following information on Process::Sys functions in the Ruby source code builder.

getegid - Returns the effective group ID for this process. Not available on all platforms.

geteuid - Returns the effective user ID for this process.

getgid - Returns the (real) group ID for this process.

getuid - Returns the (real) user ID of this process.

issetugid - 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.

setegid(integer) - Set the effective group ID of the calling process to integer. Not available on all platforms.

seteuid(integer) - Set the effective user ID of the calling process to integer. Not available on all platforms.

setgid(integer) - Set the group ID of the current process to integer. Not available on all platforms.

setregid(rid, eid) - Sets the (integer) real and/or effective group IDs of the current process to rid and eid, respectively. A value of -1 for either means to leave that ID unchanged. Not available on all platforms.

setresgid(rid, eid, sid) - Sets the (integer) real, effective, and saved user IDs of the current process to rid, eid, and sid respectively. A value of -1 for any value means to leave that ID unchanged. Not available on all platforms.

setresuid(rid, eid, sid) - Sets the (integer) real, effective, and saved user IDs of the current process to rid, eid, and sid respectively. A value of -1 for any value means to leave that ID unchanged. Not available on all platforms.

setreuid(rid, eid) - Sets the (integer) real and/or effective user IDs of the current process to rid and eid, respectively. A value of -1 for either means to leave that ID unchanged. Not available on all platforms.

setrgid(integer) - Set the real group ID of the calling process to integer. Not available on all platforms.

setruid(integer) - Set the real user ID of the calling process to integer. Not available on all platforms.

setuid(integer) - Set the user ID of the current process to integer. Not available on all platforms.