Module: Process::Sys
Relationships & Source Files | |
Defined in: | process.c |
Overview
Class Attribute Summary
-
.geteuid ⇒ Fixnum
readonly
mod_func
Alias for UID.eid.
-
.getgid ⇒ Fixnum
readonly
mod_func
Alias for GID.rid.
-
.getuid ⇒ Fixnum
readonly
mod_func
Alias for UID.rid.
Class Method Summary
-
.getegid ⇒ Fixnum
mod_func
Alias for GID.eid.
-
.issetugid ⇒ Boolean
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.
-
.seteuid(user) ⇒ nil
mod_func
Set the effective user ID of the calling process to user.
-
.setgid(group) ⇒ nil
mod_func
Set the group ID of the current process to group.
-
.setregid(rid, eid) ⇒ nil
mod_func
Sets the (group) real and/or effective group IDs of the current process to rid and eid, respectively.
-
.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.
-
.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.
-
.setreuid(rid, eid) ⇒ nil
mod_func
Sets the (user) real and/or effective user IDs of the current process to rid and eid, respectively.
-
.setrgid(group) ⇒ nil
mod_func
Set the real group ID of the calling process to group.
-
.setruid(user) ⇒ nil
mod_func
Set the real user ID of the calling process to user.
-
.setuid(user) ⇒ nil
mod_func
Set the user ID of the current process to user.
Class Attribute Details
.geteuid ⇒ Fixnum (readonly, mod_func)
.getgid ⇒ Fixnum (readonly, mod_func)
.getuid ⇒ Fixnum (readonly, mod_func)
Class Method Details
.getegid ⇒ Fixnum (mod_func)
.issetugid ⇒ Boolean
(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.