Results for: "to_proc"

Returns true if the real and effective user IDs of a process may be exchanged on the current platform.

Returns true if the current platform has saved user ID functionality.

Switch the effective and real user IDs of the current process. If a block is given, the user IDs will be switched back after the block is executed. Returns the new effective user ID if called without a block, and the return value of the block if one is given.

Returns the (real) group ID for this process.

Process.gid   #=> 500

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

Process.egid   #=> 500

Exchange real and effective group IDs and return the new effective group ID. Not available on all platforms.

[Process.gid, Process.egid]   #=> [0, 33]
Process::GID.re_exchange      #=> 0
[Process.gid, Process.egid]   #=> [33, 0]

Returns true if the real and effective group IDs of a process may be exchanged on the current platform.

Returns true if the current platform has saved group ID functionality.

Switch the effective and real group IDs of the current process. If a block is given, the group IDs will be switched back after the block is executed. Returns the new effective group ID if called without a block, and the return value of the block if one is given.

Returns the (real) user ID of this process.

Process.uid   #=> 501

Returns the effective user ID for this process.

Process.euid   #=> 501

Returns the (real) group ID for this process.

Process.gid   #=> 500

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

Process.egid   #=> 500

Set the user ID of the current process to user. Not available on all platforms.

Set the group ID of the current process to group. Not available on all platforms.

Set the real user ID of the calling process to user. Not available on all platforms.

Set the real group ID of the calling process to group. Not available on all platforms.

Set the effective user ID of the calling process to user. Not available on all platforms.

Set the effective group ID of the calling process to group. Not available on all platforms.

Sets the (user) 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.

Sets the (group) 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.

Sets the (user) 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.

Sets the (group) 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.

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.

Search took: 4ms  ·  Total Results: 2024