#[non_exhaustive]pub struct RestrictSelfStatus {
pub landlock: LandlockStatus,
pub no_new_privs: bool,
pub log_subdomains: bool,
}Expand description
Status returned by RestrictSelf::apply().
This is a proper subset of RestrictionStatus:
log_same_exec and log_new_exec are domain-specific and not configurable
on RestrictSelf, so they are not reported here; ruleset does not
apply without a domain.
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.landlock: LandlockStatusLandlock support status of the running system.
no_new_privs: boolno_new_privs was successfully enforced via
prctl(PR_SET_NO_NEW_PRIVS, 1).
log_subdomains: boolSubdomain logging is enabled (default: true).
Trait Implementations§
Source§impl Debug for RestrictSelfStatus
impl Debug for RestrictSelfStatus
Source§impl PartialEq for RestrictSelfStatus
impl PartialEq for RestrictSelfStatus
impl Eq for RestrictSelfStatus
impl StructuralPartialEq for RestrictSelfStatus
Auto Trait Implementations§
impl Freeze for RestrictSelfStatus
impl RefUnwindSafe for RestrictSelfStatus
impl Send for RestrictSelfStatus
impl Sync for RestrictSelfStatus
impl Unpin for RestrictSelfStatus
impl UnsafeUnpin for RestrictSelfStatus
impl UnwindSafe for RestrictSelfStatus
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