pub enum Sandbox {
Inherit,
StoreScoped,
}Expand description
Kernel-sandbox declaration for a tool — the Landlock A→B seam.
v0 (declarative/audit-facing): the serve-level Landlock ruleset
(WM_LANDLOCK=1) confines the whole process’s write-class filesystem
rights to the store root; this field records nothing enforced per tool.
v1 (enforced): tools declaring Sandbox::StoreScoped become eligible
to run on a dedicated Landlock-restricted thread, upgrading the pathway
without reworking tool definitions.
Variants§
Inherit
Tool runs with the process’s ambient filesystem rights (default). The serve-level ruleset still applies process-wide when enabled.
StoreScoped
Tool only touches paths beneath the store root — eligible for the v1 per-tool restricted-thread pathway.
Trait Implementations§
impl Copy for Sandbox
Source§impl<'de> Deserialize<'de> for Sandbox
impl<'de> Deserialize<'de> for Sandbox
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
impl Eq for Sandbox
impl StructuralPartialEq for Sandbox
Auto Trait Implementations§
impl Freeze for Sandbox
impl RefUnwindSafe for Sandbox
impl Send for Sandbox
impl Sync for Sandbox
impl Unpin for Sandbox
impl UnsafeUnpin for Sandbox
impl UnwindSafe for Sandbox
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