pub enum MacDenyReason {
NoPepInstalled,
NoClearance,
UnlabeledObject,
FloorDeny,
StaleAuthority,
}Expand description
Why a MAC decision denied. Auditable and testable.
Variants§
NoPepInstalled
The process-global PEP has not been installed, or an operator
deliberately installed DenyAllMacPep as a fail-closed sentinel.
NoClearance
Subject has no derivable clearance (unlabeled subject).
#698 is merged: production clearance resolves through the signed boot
policy’s enrollment table (EnrollmentSubjectContextResolver), so this
deny now means the subject is not enrolled in the installed policy
generation — including the accepted enrollment-distribution lag, which
must never be bypassed.
UnlabeledObject
Object has no trusted label (unlabeled object).
The RpcObjectLabelResolver returned None for this service+method.
Per D2/D3, objects deny/clamp — never default-allow.
FloorDeny
Clearance does not dominate the object label (lattice floor deny).
The subject’s clearance exists and the object label exists, but
SecurityContext::can_access returned false.
StaleAuthority
Stale continuation authority (streaming re-check failed).
A streaming continuation was re-checked and the subject’s authority has been revoked or the policy generation has rolled.
Trait Implementations§
Source§impl Clone for MacDenyReason
impl Clone for MacDenyReason
Source§fn clone(&self) -> MacDenyReason
fn clone(&self) -> MacDenyReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MacDenyReason
impl Debug for MacDenyReason
Source§impl PartialEq for MacDenyReason
impl PartialEq for MacDenyReason
Source§fn eq(&self, other: &MacDenyReason) -> bool
fn eq(&self, other: &MacDenyReason) -> bool
self and other values to be equal, and is used by ==.impl Copy for MacDenyReason
impl Eq for MacDenyReason
impl StructuralPartialEq for MacDenyReason
Auto Trait Implementations§
impl Freeze for MacDenyReason
impl RefUnwindSafe for MacDenyReason
impl Send for MacDenyReason
impl Sync for MacDenyReason
impl Unpin for MacDenyReason
impl UnsafeUnpin for MacDenyReason
impl UnwindSafe for MacDenyReason
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§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