#[non_exhaustive]pub struct ConfinementReport {
pub session: Enforcement,
pub session_unmet: Vec<String>,
pub strict: Enforcement,
pub strict_unmet: Vec<String>,
pub network_restricted: bool,
pub require_enforcement: bool,
pub unattended_allows_open_network: bool,
}Expand description
What the session’s sandbox holds a command to, found once when the session is built. The permission policy reads it and never probes the sandbox itself.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session: EnforcementHow much of the session’s policy holds a command.
session_unmet: Vec<String>What of the session’s policy does not hold, as Confined::unmet.
strict: EnforcementHow much of the strict policy (SandboxPolicy::strict) holds one.
strict_unmet: Vec<String>What of the strict policy does not hold, as Confined::unmet.
network_restricted: boolThe model cannot reach whatever host it likes.
require_enforcement: bool§unattended_allows_open_network: boolImplementations§
Source§impl ConfinementReport
impl ConfinementReport
Sourcepub fn probe(
sandbox: &dyn Sandbox,
probe: ProcessSpec,
policy: &SandboxPolicy,
require_enforcement: bool,
unattended_allows_open_network: bool,
) -> Self
pub fn probe( sandbox: &dyn Sandbox, probe: ProcessSpec, policy: &SandboxPolicy, require_enforcement: bool, unattended_allows_open_network: bool, ) -> Self
Confine a probe command under policy, and under its strict
counterpart, and report how much of each held.
Sourcepub fn disabled(
require_enforcement: bool,
unattended_allows_open_network: bool,
) -> Self
pub fn disabled( require_enforcement: bool, unattended_allows_open_network: bool, ) -> Self
No sandbox at all: the session turned it off.
Sourcepub fn holds_unattended(&self) -> bool
pub fn holds_unattended(&self) -> bool
A command nobody can be asked about may run: the sandbox fully holds it, and the network is restricted when the settings ask for that too.
Trait Implementations§
Source§impl Clone for ConfinementReport
impl Clone for ConfinementReport
Source§impl Debug for ConfinementReport
impl Debug for ConfinementReport
Source§impl Default for ConfinementReport
impl Default for ConfinementReport
impl Eq for ConfinementReport
Source§impl PartialEq for ConfinementReport
impl PartialEq for ConfinementReport
impl StructuralPartialEq for ConfinementReport
Auto Trait Implementations§
impl Forget for ConfinementReport
impl Freeze for ConfinementReport
impl Move for ConfinementReport
impl RefUnwindSafe for ConfinementReport
impl Send for ConfinementReport
impl Sync for ConfinementReport
impl Unpin for ConfinementReport
impl UnsafeUnpin for ConfinementReport
impl UnwindSafe for ConfinementReport
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