#[non_exhaustive]pub enum RestrictSelfFlag {
LogSameExec,
LogNewExec,
LogSubdomains,
}Expand description
Identifies a configuration flag for the landlock_restrict_self() syscall.
Unlike access rights (AccessFs, AccessNet)
and scopes (Scope), these flags are not passed to
landlock_create_ruleset() but to landlock_restrict_self(). They control
audit logging behavior rather than access restrictions.
Each flag is set through a dedicated boolean method on
RulesetCreatedAttr or
RestrictSelfAttr. The polarity mapping
(e.g., log_same_exec(false) maps to LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF)
is handled internally.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LogSameExec
Same-exec logging (see RulesetCreatedAttr::log_same_exec()).
LogNewExec
New-exec logging (see RulesetCreatedAttr::log_new_exec()).
LogSubdomains
Subdomain logging (see RestrictSelfAttr::log_subdomains()).
Trait Implementations§
Source§impl Clone for RestrictSelfFlag
impl Clone for RestrictSelfFlag
Source§fn clone(&self) -> RestrictSelfFlag
fn clone(&self) -> RestrictSelfFlag
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RestrictSelfFlag
impl Debug for RestrictSelfFlag
Source§impl PartialEq for RestrictSelfFlag
impl PartialEq for RestrictSelfFlag
impl Copy for RestrictSelfFlag
impl Eq for RestrictSelfFlag
impl StructuralPartialEq for RestrictSelfFlag
impl SyscallFlag for RestrictSelfFlag
Auto Trait Implementations§
impl Freeze for RestrictSelfFlag
impl RefUnwindSafe for RestrictSelfFlag
impl Send for RestrictSelfFlag
impl Sync for RestrictSelfFlag
impl Unpin for RestrictSelfFlag
impl UnsafeUnpin for RestrictSelfFlag
impl UnwindSafe for RestrictSelfFlag
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