Function users::switch::set_both_gid
[−]
[src]
pub fn set_both_gid(rgid: gid_t, egid: gid_t) -> IOResult<()>
Sets both the current group and the effective group for the
running process to the ones with the given group IDs. Uses setregid
internally.
Typically, trying to switch to any group other than the group already running the process requires root privileges.