Enum libseccomp_sys::scmp_filter_attr
source · [−]#[repr(C)]
pub enum scmp_filter_attr {
_SCMP_FLTATR_MIN,
SCMP_FLTATR_ACT_DEFAULT,
SCMP_FLTATR_ACT_BADARCH,
SCMP_FLTATR_CTL_NNP,
SCMP_FLTATR_CTL_TSYNC,
SCMP_FLTATR_API_TSKIP,
SCMP_FLTATR_CTL_LOG,
SCMP_FLTATR_CTL_SSB,
SCMP_FLTATR_CTL_OPTIMIZE,
SCMP_FLTATR_API_SYSRAWRC,
_SCMP_FLTATR_MAX,
}
Expand description
Filter attributes
Variants
_SCMP_FLTATR_MIN
SCMP_FLTATR_ACT_DEFAULT
default filter action
SCMP_FLTATR_ACT_BADARCH
bad architecture action
SCMP_FLTATR_CTL_NNP
set NO_NEW_PRIVS
on filter load
SCMP_FLTATR_CTL_TSYNC
sync threads on filter load
SCMP_FLTATR_API_TSKIP
allow rules with a -1 syscall
SCMP_FLTATR_CTL_LOG
log not-allowed actions
SCMP_FLTATR_CTL_SSB
disable SSB mitigation
SCMP_FLTATR_CTL_OPTIMIZE
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
return the system return codes
_SCMP_FLTATR_MAX
Trait Implementations
sourceimpl Clone for scmp_filter_attr
impl Clone for scmp_filter_attr
sourcefn clone(&self) -> scmp_filter_attr
fn clone(&self) -> scmp_filter_attr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for scmp_filter_attr
impl Debug for scmp_filter_attr
sourceimpl Hash for scmp_filter_attr
impl Hash for scmp_filter_attr
sourceimpl PartialEq<scmp_filter_attr> for scmp_filter_attr
impl PartialEq<scmp_filter_attr> for scmp_filter_attr
impl Copy for scmp_filter_attr
impl Eq for scmp_filter_attr
impl StructuralEq for scmp_filter_attr
impl StructuralPartialEq for scmp_filter_attr
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more