Skip to main content

require_root_for_apply

Function require_root_for_apply 

Source
pub fn require_root_for_apply(mode: ApplyMode) -> Result<()>
Expand description

In Apply mode, require effective uid 0.

ยงErrors

Returns HortoError::RootRequired when mode is ApplyMode::Apply and the process is not root.