pub struct WrapperConfig {
pub allow_floor: Vec<String>,
pub ask_floor: Vec<String>,
}Expand description
Commands that execute their arguments as subcommands. The wrapped command is extracted and evaluated; the final decision is max(floor, wrapped_command_decision).
Fields§
§allow_floor: Vec<String>Wrappers with Allow floor: wrapper is safe, wrapped command determines disposition. e.g. xargs, parallel, env, nohup, nice, timeout, time, watch
ask_floor: Vec<String>Wrappers with Ask floor: always at least Ask, wrapped command can escalate to Deny. e.g. sudo, doas, pkexec
Trait Implementations§
Source§impl Debug for WrapperConfig
impl Debug for WrapperConfig
Source§impl Default for WrapperConfig
impl Default for WrapperConfig
Source§fn default() -> WrapperConfig
fn default() -> WrapperConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WrapperConfig
impl<'de> Deserialize<'de> for WrapperConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WrapperConfig
impl RefUnwindSafe for WrapperConfig
impl Send for WrapperConfig
impl Sync for WrapperConfig
impl Unpin for WrapperConfig
impl UnsafeUnpin for WrapperConfig
impl UnwindSafe for WrapperConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more