pub struct MacActivationControl { /* private fields */ }Expand description
Process-wide widen/narrow control. It never removes a PEP.
Implementations§
Source§impl MacActivationControl
impl MacActivationControl
Sourcepub fn mode(&self) -> MacActivationMode
pub fn mode(&self) -> MacActivationMode
Current subject-context selection.
Sourcepub fn widen_identity_aware(
&self,
evidence: &MacActivationEvidence<'_>,
) -> Result<(), MacActivationError>
pub fn widen_identity_aware( &self, evidence: &MacActivationEvidence<'_>, ) -> Result<(), MacActivationError>
Explicit operator widening. Coverage must be complete at the instant of the request; merely constructing or logging a report never flips state.
Sourcepub fn narrow_to_floor(&self)
pub fn narrow_to_floor(&self)
Kill-switch: narrow subject context back to the anonymous floor while leaving every monitor installed and authoritative.
Sourcepub fn select_context(
&self,
verified: Option<SecurityContext>,
) -> Option<SecurityContext>
pub fn select_context( &self, verified: Option<SecurityContext>, ) -> Option<SecurityContext>
Select the context a PEP must evaluate in the current mode.
Sourcepub fn block_unverified_attach_transport(&self, transport: &'static str)
pub fn block_unverified_attach_transport(&self, transport: &'static str)
Permanently block identity-aware widening in this process while a live 9P transport still has no verified attach-credential carrier.
Registration also narrows an already-widened process immediately, so a late worker constructor cannot turn UDS/vsock attaches into a deny-all availability outage.
Sourcepub fn blocked_transports(&self) -> Vec<&'static str>
pub fn blocked_transports(&self) -> Vec<&'static str>
Runtime transport blockers that make G2 structurally incomplete.
Trait Implementations§
Source§impl Debug for MacActivationControl
impl Debug for MacActivationControl
Auto Trait Implementations§
impl !Freeze for MacActivationControl
impl !RefUnwindSafe for MacActivationControl
impl Send for MacActivationControl
impl Sync for MacActivationControl
impl Unpin for MacActivationControl
impl UnsafeUnpin for MacActivationControl
impl UnwindSafe for MacActivationControl
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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