Skip to main content

setuid

Function setuid 

Source
pub fn setuid(uid: u32) -> Result<(), CoreError>
Expand description

Drop process privileges to the given UID (setresuid).

Sets real, effective, and saved UID to uid.