Enum libseccomp::ScmpAction[][src]

pub enum ScmpAction {
    KillProcess,
    KillThread,
    Trap,
    Notify,
    Errno(u32),
    Trace(u32),
    Log,
    Allow,
}

ScmpAction represents an action to be taken on a filter rule match in libseccomp

Variants

KillProcess

Kill the process

KillThread

Kill the thread

Trap

Throw a SIGSYS signal

Notify

Notifies userspace

Errno(u32)

Return the specified error code

Trace(u32)

Notify a tracing process with the specified value

Log

Allow the syscall to be executed after the action has been logged

Allow

Allow the syscall to be executed

Implementations

impl ScmpAction[src]

pub fn to_native(&self) -> u32[src]

pub fn from_str(action: &str, errno: Option<u32>) -> Result<Self>[src]

Convert string seccomp action to ScmpAction

Trait Implementations

impl Clone for ScmpAction[src]

impl Copy for ScmpAction[src]

impl Debug for ScmpAction[src]

impl Eq for ScmpAction[src]

impl PartialEq<ScmpAction> for ScmpAction[src]

impl StructuralEq for ScmpAction[src]

impl StructuralPartialEq for ScmpAction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.