pub struct BwrapLauncher { /* private fields */ }Expand description
Linux bubblewrap realization of the runtime-owned sandbox authority boundary.
Implementations§
Source§impl BwrapLauncher
impl BwrapLauncher
Sourcepub fn new(
bwrap: PathBuf,
prlimit: PathBuf,
programs: BTreeMap<ProgramRef, PathBuf>,
sources: BTreeMap<String, PathBuf>,
) -> Self
pub fn new( bwrap: PathBuf, prlimit: PathBuf, programs: BTreeMap<ProgramRef, PathBuf>, sources: BTreeMap<String, PathBuf>, ) -> Self
Creates a boot-configured launcher. Paths are authority supplied, never request supplied.
Sourcepub fn confinement_status(&self) -> BwrapConfinementStatus
pub fn confinement_status(&self) -> BwrapConfinementStatus
Probes the exact boot-resolved membrane executables without dispatch.
Trait Implementations§
Source§impl Clone for BwrapLauncher
impl Clone for BwrapLauncher
Source§impl Debug for BwrapLauncher
impl Debug for BwrapLauncher
Source§impl SandboxLauncher for BwrapLauncher
impl SandboxLauncher for BwrapLauncher
Source§fn launch(
&self,
request: &SandboxRequest,
cancellation: &ProcessCancellation,
) -> SandboxAttempt
fn launch( &self, request: &SandboxRequest, cancellation: &ProcessCancellation, ) -> SandboxAttempt
Attempts the request and reports a complete, refusal, stop, or unknown outcome.
Auto Trait Implementations§
impl Forget for BwrapLauncher
impl Freeze for BwrapLauncherwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<ProgramRef, PathBuf> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(ProgramRef, PathBuf)>>: Freeze,
*const LeafNode<String, PathBuf> is !null: Freeze,
PhantomData<Box<(String, PathBuf)>>: Freeze,
impl Move for BwrapLauncher
impl RefUnwindSafe for BwrapLauncher
impl Send for BwrapLauncher
impl Sync for BwrapLauncher
impl Unpin for BwrapLauncher
impl UnsafeUnpin for BwrapLauncherwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<ProgramRef, PathBuf> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(ProgramRef, PathBuf)>>: UnsafeUnpin,
*const LeafNode<String, PathBuf> is !null: UnsafeUnpin,
PhantomData<Box<(String, PathBuf)>>: UnsafeUnpin,
impl UnwindSafe for BwrapLauncherwhere
RawVecInner: UnwindSafe,
BTreeMap<ProgramRef, PathBuf>: UnwindSafe,
BTreeMap<String, PathBuf>: UnwindSafe,
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