pub struct BubblewrapScope {
pub cwd: String,
pub read_paths: Vec<String>,
pub write_paths: Vec<String>,
pub allow_network: bool,
}Expand description
What a task-scoped bubblewrap sandbox may touch: deny by default, unlike
BubblewrapSandbox::args (which mounts the whole host read-only). The
command sees the base system directories (the dynamic loader, /usr,
/bin, /lib), a private /dev, /proc and /tmp, and exactly the
listed paths: read_paths read-only, write_paths read-write. With
allow_network it also sees the resolver and CA configuration it needs
to use the network. Listed paths that do not exist are skipped.
Fields§
§cwd: StringWorking directory inside the sandbox (absolute).
read_paths: Vec<String>§write_paths: Vec<String>§allow_network: boolTrait Implementations§
Source§impl Clone for BubblewrapScope
impl Clone for BubblewrapScope
Source§impl Debug for BubblewrapScope
impl Debug for BubblewrapScope
Source§impl Default for BubblewrapScope
impl Default for BubblewrapScope
impl Eq for BubblewrapScope
Source§impl PartialEq for BubblewrapScope
impl PartialEq for BubblewrapScope
impl StructuralPartialEq for BubblewrapScope
Auto Trait Implementations§
impl Forget for BubblewrapScope
impl Freeze for BubblewrapScope
impl Move for BubblewrapScope
impl RefUnwindSafe for BubblewrapScope
impl Send for BubblewrapScopewhere
RawVecInner: Send,
impl Sync for BubblewrapScopewhere
RawVecInner: Sync,
impl Unpin for BubblewrapScope
impl UnsafeUnpin for BubblewrapScopewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for BubblewrapScopewhere
RawVecInner: 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