Enum ListingAuthorization
pub enum ListingAuthorization {
Unconfined(PathBuf),
Confined {
root: PathBuf,
target: PathBuf,
},
}Expand description
What a listing is confined to once authorized.
Both variants carry the canonical resolved target the authorization was judged against. The handler enumerates that target, never the raw request spelling: re-deriving the path after the check would let a writable component be swapped for a link to another directory in between.
Variants§
Unconfined(PathBuf)
Operator-level principal, or a policy that bounds no root for the path: the daemon account’s own access governs, as it did before confinement. Carries the canonical resolved target to enumerate.
Confined
Scoped principal: enumeration must stay beneath this approved root. Carries the approved root and the canonical resolved target.
Auto Trait Implementations§
impl Freeze for ListingAuthorization
impl RefUnwindSafe for ListingAuthorization
impl Send for ListingAuthorization
impl Sync for ListingAuthorization
impl Unpin for ListingAuthorization
impl UnsafeUnpin for ListingAuthorization
impl UnwindSafe for ListingAuthorization
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
Converts
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> ⓘ
Converts
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