#[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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.