#[non_exhaustive]pub struct RestrictionStatus {
pub ruleset: RulesetStatus,
pub no_new_privs: bool,
pub landlock: LandlockStatus,
}Expand description
Status of a RulesetCreated
after calling restrict_self().
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ruleset: RulesetStatusStatus of the Landlock ruleset enforcement.
no_new_privs: boolStatus of prctl(2)’s PR_SET_NO_NEW_PRIVS enforcement.
landlock: LandlockStatusStatus of Landlock for the running kernel.
Trait Implementations§
Source§impl Debug for RestrictionStatus
impl Debug for RestrictionStatus
Source§impl PartialEq for RestrictionStatus
impl PartialEq for RestrictionStatus
impl Eq for RestrictionStatus
impl StructuralPartialEq for RestrictionStatus
Auto Trait Implementations§
impl Freeze for RestrictionStatus
impl RefUnwindSafe for RestrictionStatus
impl Send for RestrictionStatus
impl Sync for RestrictionStatus
impl Unpin for RestrictionStatus
impl UnwindSafe for RestrictionStatus
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