#[repr(C)]pub enum scmp_filter_attr {
_SCMP_FLTATR_MIN = 0,
SCMP_FLTATR_ACT_DEFAULT = 1,
SCMP_FLTATR_ACT_BADARCH = 2,
SCMP_FLTATR_CTL_NNP = 3,
SCMP_FLTATR_CTL_TSYNC = 4,
SCMP_FLTATR_API_TSKIP = 5,
SCMP_FLTATR_CTL_LOG = 6,
SCMP_FLTATR_CTL_SSB = 7,
SCMP_FLTATR_CTL_OPTIMIZE = 8,
SCMP_FLTATR_API_SYSRAWRC = 9,
SCMP_FLTATR_CTL_WAITKILL = 10,
_SCMP_FLTATR_MAX = 11,
}Expand description
Filter attributes
Variants§
_SCMP_FLTATR_MIN = 0
SCMP_FLTATR_ACT_DEFAULT = 1
default filter action
SCMP_FLTATR_ACT_BADARCH = 2
bad architecture action
SCMP_FLTATR_CTL_NNP = 3
set NO_NEW_PRIVS on filter load
SCMP_FLTATR_CTL_TSYNC = 4
sync threads on filter load
SCMP_FLTATR_API_TSKIP = 5
allow rules with a -1 syscall
SCMP_FLTATR_CTL_LOG = 6
log not-allowed actions
SCMP_FLTATR_CTL_SSB = 7
disable SSB mitigation
SCMP_FLTATR_CTL_OPTIMIZE = 8
filter optimization level:
- 0: currently unused
- 1: rules weighted by priority and complexity (DEFAULT)
- 2: binary tree sorted by syscall number
SCMP_FLTATR_API_SYSRAWRC = 9
return the system return codes
SCMP_FLTATR_CTL_WAITKILL = 10
request wait killable semantics
_SCMP_FLTATR_MAX = 11
Trait Implementations§
Source§impl Clone for scmp_filter_attr
impl Clone for scmp_filter_attr
Source§fn clone(&self) -> scmp_filter_attr
fn clone(&self) -> scmp_filter_attr
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 scmp_filter_attr
impl Debug for scmp_filter_attr
Source§impl Hash for scmp_filter_attr
impl Hash for scmp_filter_attr
Source§impl PartialEq for scmp_filter_attr
impl PartialEq for scmp_filter_attr
impl Copy for scmp_filter_attr
impl Eq for scmp_filter_attr
impl StructuralPartialEq for scmp_filter_attr
Auto Trait Implementations§
impl Freeze for scmp_filter_attr
impl RefUnwindSafe for scmp_filter_attr
impl Send for scmp_filter_attr
impl Sync for scmp_filter_attr
impl Unpin for scmp_filter_attr
impl UnwindSafe for scmp_filter_attr
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