Ruby Process::GID Functions

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

change_privilege(integer) - Change the current process's real and effective group ID to that specified by integer. Returns the new group ID. Not available on all platforms.

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

grant_privilege(integer) - Set the effective group ID, and if possible, the saved group ID of the process to the given integer. Returns the new effective group ID. Not available on all platforms.

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

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

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

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

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