fungus::sys::user
pub fn geteuid() -> u32
Returns the user effective ID for the current user.
use fungus::prelude::*; assert!(user::geteuid() != 0);