pub struct AllowAllCheck;Expand description
Default policy: allows all calls, logging each to stderr so stdout carries only the program’s result.
Trait Implementations§
Source§impl SecurityCheck for AllowAllCheck
impl SecurityCheck for AllowAllCheck
fn check(&self, caller: &str, capability: &str, context: &Value) -> CheckOutcome
Source§fn audit(&self, _decision: AuditDecision<'_>)
fn audit(&self, _decision: AuditDecision<'_>)
Optional embedder audit sink. No guest fuel is charged for observation.
Source§fn audit_context<'a>(
&self,
_capability: &str,
context: &'a Value,
_cwd: &str,
) -> Cow<'a, Value>
fn audit_context<'a>( &self, _capability: &str, context: &'a Value, _cwd: &str, ) -> Cow<'a, Value>
The metadata actually tested by the policy, including lexical VFS normalization.
fn check_with_cwd( &self, caller: &str, capability: &str, context: &Value, _cwd: &str, ) -> CheckOutcome
Source§fn recorder(&self) -> Option<&dyn DecisionRecorder>
fn recorder(&self) -> Option<&dyn DecisionRecorder>
The per-run decision recorder, when one is installed. The runtime computes
explanations and captures source lines only while this is
Some.Source§fn explain(
&self,
_caller: &str,
_capability: &str,
_context: &Value,
_cwd: &str,
) -> Option<DecisionExplanation>
fn explain( &self, _caller: &str, _capability: &str, _context: &Value, _cwd: &str, ) -> Option<DecisionExplanation>
Why the policy would decide as it does for this call, for a recorder.
Called only while
Self::recorder is Some, with the context as the host
function built it; the policy applies its own normalization.Auto Trait Implementations§
impl Freeze for AllowAllCheck
impl RefUnwindSafe for AllowAllCheck
impl Send for AllowAllCheck
impl Sync for AllowAllCheck
impl Unpin for AllowAllCheck
impl UnsafeUnpin for AllowAllCheck
impl UnwindSafe for AllowAllCheck
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