pub struct HarnessGrants {
pub report: HarnessReport,
pub granted_paths: Vec<HostPath>,
pub refusal: Option<RuntimeError>,
}Expand description
The resolved harness grant for one session: the report --explain-scope and
session_start.effective_grants carry, the host paths to add to the harness’s enforcement,
and the refusal (E-CAP-021) when any need the manifest does not allow, or a granted path
resolving to a refused location, was found.
The report is always built, with every need’s status, so --explain-scope can print it and
exit 0 even when refusal is set. Staging and mur doctor propagate refusal; explain-scope
ignores it.
Fields§
§report: HarnessReport§granted_paths: Vec<HostPath>The host paths to add to the harness’s enforcement: one per path need that resolved to a
real directory on this host (status: granted). A missing or refused need contributes
none.
refusal: Option<RuntimeError>Some when a path or host need the manifest does not allow, or a granted path resolving to
a refused location, was found: the E-CAP-021 refusal naming every one.
Auto Trait Implementations§
impl !RefUnwindSafe for HarnessGrants
impl !UnwindSafe for HarnessGrants
impl Forget for HarnessGrants
impl Freeze for HarnessGrants
impl Move for HarnessGrants
impl Send for HarnessGrants
impl Sync for HarnessGrants
impl Unpin for HarnessGrants
impl UnsafeUnpin for HarnessGrants
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more