pub struct PerThreadCache { /* private fields */ }Expand description
Per-thread cache for SELinux policy decisions.
Implementations§
Source§impl PerThreadCache
impl PerThreadCache
Sourcepub fn lookup_fd_use<F>(
&self,
policy_seqno: PolicySeqNo,
source_sid: SecurityId,
target_sid: SecurityId,
compute: F,
) -> PermissionCheckResultwhere
F: FnOnce() -> PermissionCheckResult,
pub fn lookup_fd_use<F>(
&self,
policy_seqno: PolicySeqNo,
source_sid: SecurityId,
target_sid: SecurityId,
compute: F,
) -> PermissionCheckResultwhere
F: FnOnce() -> PermissionCheckResult,
Looks up a fd use decision in cache, or falls back to using compute.
Trait Implementations§
Source§impl Debug for PerThreadCache
impl Debug for PerThreadCache
Auto Trait Implementations§
impl !Freeze for PerThreadCache
impl !RefUnwindSafe for PerThreadCache
impl !Sync for PerThreadCache
impl Send for PerThreadCache
impl Unpin for PerThreadCache
impl UnsafeUnpin for PerThreadCache
impl UnwindSafe for PerThreadCache
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
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