#[non_exhaustive]pub struct RestrictionStatus {
pub ruleset: RulesetStatus,
pub no_new_privs: bool,
}
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: RulesetStatus
Status of the Landlock ruleset enforcement.
no_new_privs: bool
Status of prctl(2)
’s PR_SET_NO_NEW_PRIVS
enforcement.
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