pub enum IsolationBackend {
None,
Bwrap {
bwrap_path: PathBuf,
},
}Expand description
Which isolation backend to use for a stage execution.
Variants§
None
No isolation — legacy behaviour. A malicious stage can read
host files, call out to the network, write to the user’s
home directory. Noether emits a warning the first time this
backend is used unless --unsafe-no-isolation is set.
Bwrap
Wrap the stage subprocess in bwrap. Requires the
bubblewrap binary in PATH. Linux-only.
Implementations§
Source§impl IsolationBackend
impl IsolationBackend
Sourcepub fn auto() -> (Self, Option<String>)
pub fn auto() -> (Self, Option<String>)
Resolve "auto": pick the best backend available on this
host. On Linux with bwrap on PATH, that’s
IsolationBackend::Bwrap. Elsewhere, falls back to
IsolationBackend::None with the returned warning string
so the caller can surface it.
Sourcepub fn from_flag(flag: &str) -> Result<(Self, Option<String>), IsolationError>
pub fn from_flag(flag: &str) -> Result<(Self, Option<String>), IsolationError>
Parse the --isolate / NOETHER_ISOLATION argument.
pub fn is_effective(&self) -> bool
Trait Implementations§
Source§impl Clone for IsolationBackend
impl Clone for IsolationBackend
Source§fn clone(&self) -> IsolationBackend
fn clone(&self) -> IsolationBackend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IsolationBackend
impl Debug for IsolationBackend
Source§impl PartialEq for IsolationBackend
impl PartialEq for IsolationBackend
impl Eq for IsolationBackend
impl StructuralPartialEq for IsolationBackend
Auto Trait Implementations§
impl Freeze for IsolationBackend
impl RefUnwindSafe for IsolationBackend
impl Send for IsolationBackend
impl Sync for IsolationBackend
impl Unpin for IsolationBackend
impl UnsafeUnpin for IsolationBackend
impl UnwindSafe for IsolationBackend
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