123456789_123456789_123456789_123456789_123456789_

Module: Process::Sys

Relationships & Source Files
Defined in: process.c

Overview

The Sys module contains UID and GID functions which provide direct bindings to the system calls of the same names instead of the more-portable versions of the same functionality found in the ::Process, UID, and GID modules.

Class Attribute Summary

Class Method Summary

Class Attribute Details

.geteuidFixnum (readonly, mod_func)

Alias for UID.eid. Returns the effective user ID for this process.

Process.euid   #=> 501

.getgidFixnum (readonly, mod_func)

Alias for GID.rid. Returns the (real) group ID for this process.

Process.gid   #=> 500

.getuidFixnum (readonly, mod_func)

Alias for UID.rid. Returns the (real) user ID of this process.

Process.uid   #=> 501

Class Method Details

.getegidFixnum (mod_func)

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

Process.egid   #=> 500

.issetugidBoolean (mod_func)

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(group) ⇒ nil (mod_func)

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

.seteuid(user) ⇒ nil (mod_func)

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

.setgid(group) ⇒ nil (mod_func)

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

.setregid(rid, eid) ⇒ nil (mod_func)

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.

.setresgid(rid, eid, sid) ⇒ nil (mod_func)

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.

.setresuid(rid, eid, sid) ⇒ nil (mod_func)

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.

.setreuid(rid, eid) ⇒ nil (mod_func)

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.

.setrgid(group) ⇒ nil (mod_func)

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

.setruid(user) ⇒ nil (mod_func)

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

.setuid(user) ⇒ nil (mod_func)

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