pub enum SandboxEscalation {
Deny,
Ask,
Allow,
}Expand description
capabilities.permissions.sandbox.escalation (§3.1): what happens when a
confining fs tier is requested but this platform/kernel cannot actually
enforce it. Deny (the default) refuses to run the subprocess at all —
the cardinal “never silently unsandboxed” rule. Ask routes the decision
through crate::permissions::PermissionsApprovalHandler (P5-1’s
permissions.approvals seam, wired here per this module’s build brief).
Allow auto-permits an unconfined run with a loud, one-time warning.
Variants§
Deny
Refuse to run the subprocess when confinement can’t be established (fail-closed; the default).
Ask
Consult the installed PermissionsApprovalHandler for a per-call
decision; no handler installed denies (fail-closed, same posture
PermissionsApprovalHandler’s own doc comment already documents).
Allow
Auto-permit an unconfined run, with a loud one-time warning.
Implementations§
Source§impl SandboxEscalation
impl SandboxEscalation
Sourcepub fn rank(self) -> u8
pub fn rank(self) -> u8
Strictness rank — LOWER is stricter, same convention as
configfile::sandbox_rank/approval_rank (Deny prompts nothing
through, the strictest floor; Allow is the loosest, an unconfined
run with only a warning).
Sourcepub fn parse(s: &str) -> Option<SandboxEscalation>
pub fn parse(s: &str) -> Option<SandboxEscalation>
Parse the config string ("deny" | "ask" | "allow"), _/-/case
normalized like every other sandbox-adjacent string parser in this
crate (configfile::parse_sandbox_str/parse_approval_str).
Trait Implementations§
Source§impl Clone for SandboxEscalation
impl Clone for SandboxEscalation
Source§fn clone(&self) -> SandboxEscalation
fn clone(&self) -> SandboxEscalation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SandboxEscalation
Source§impl Debug for SandboxEscalation
impl Debug for SandboxEscalation
Source§impl Default for SandboxEscalation
impl Default for SandboxEscalation
Source§fn default() -> SandboxEscalation
fn default() -> SandboxEscalation
impl Eq for SandboxEscalation
Source§impl PartialEq for SandboxEscalation
impl PartialEq for SandboxEscalation
impl StructuralPartialEq for SandboxEscalation
Auto Trait Implementations§
impl Freeze for SandboxEscalation
impl RefUnwindSafe for SandboxEscalation
impl Send for SandboxEscalation
impl Sync for SandboxEscalation
impl Unpin for SandboxEscalation
impl UnsafeUnpin for SandboxEscalation
impl UnwindSafe for SandboxEscalation
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
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
key and return true if they are equal.