pub enum ShellValidationMode {
Off,
Warn,
Enforce,
}Expand description
Controls heuristic validation of builtin shell commands.
Shell validation is a defense-in-depth guardrail and permission-prompt UX
signal. It is heuristic and is not a security boundary. Working-directory
checks do not confine a shell process; filesystem and network isolation
require an OS-enforced crate::runtime::RuntimeExecutor.
Variants§
Off
Classify commands for authorization previews without changing execution.
Warn
Emit an authorization hook for warnings or blocks, but allow execution.
Enforce
Deny commands classified as blocked and surface warnings through hooks.
Trait Implementations§
Source§impl Clone for ShellValidationMode
impl Clone for ShellValidationMode
Source§fn clone(&self) -> ShellValidationMode
fn clone(&self) -> ShellValidationMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShellValidationMode
Source§impl Debug for ShellValidationMode
impl Debug for ShellValidationMode
Source§impl Default for ShellValidationMode
impl Default for ShellValidationMode
Source§fn default() -> ShellValidationMode
fn default() -> ShellValidationMode
Returns the “default value” for a type. Read more
impl Eq for ShellValidationMode
Source§impl PartialEq for ShellValidationMode
impl PartialEq for ShellValidationMode
impl StructuralPartialEq for ShellValidationMode
Auto Trait Implementations§
impl Freeze for ShellValidationMode
impl RefUnwindSafe for ShellValidationMode
impl Send for ShellValidationMode
impl Sync for ShellValidationMode
impl Unpin for ShellValidationMode
impl UnsafeUnpin for ShellValidationMode
impl UnwindSafe for ShellValidationMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.