fn from(action: SeccompAction) -> Self {
        match action {
            SeccompAction::Allow => SECCOMP_RET_ALLOW,
            SeccompAction::Errno(x) => SECCOMP_RET_ERRNO | (x & SECCOMP_RET_MASK),
            SeccompAction::KillThread => SECCOMP_RET_KILL_THREAD,
            SeccompAction::KillProcess => SECCOMP_RET_KILL_PROCESS,
            SeccompAction::Log => SECCOMP_RET_LOG,
            SeccompAction::Trace(x) => SECCOMP_RET_TRACE | (x & SECCOMP_RET_MASK),
            SeccompAction::Trap => SECCOMP_RET_TRAP,
        }
    }
/// Return codes of the BPF program for each action.
///
/// # Arguments
///
/// * `action` - The [`SeccompAction`] that the kernel will take.
///
/// [`SeccompAction`]: struct.SeccompAction.html
Return codes of the BPF program for each action.
Return codes of the BPF program for each action .
fn from(action: SeccompAction) -> Self {
        match action {
            SeccompAction::Allow => SECCOMP_RET_ALLOW,
            SeccompAction::Errno(x) => SECCOMP_RET_ERRNO | (x & SECCOMP_RET_MASK),
            SeccompAction::KillThread => SECCOMP_RET_KILL_THREAD,
            SeccompAction::KillProcess => SECCOMP_RET_KILL_PROCESS,
            SeccompAction::Log => SECCOMP_RET_LOG,
            SeccompAction::Trace(x) => SECCOMP_RET_TRACE | (x & SECCOMP_RET_MASK),
            SeccompAction::Trap => SECCOMP_RET_TRAP,
        }
    }
fn from ( action : SeccompAction ) -> Self { match action { SeccompAction :: Allow => SECCOMP_RET_ALLOW , SeccompAction :: Errno ( x ) => SECCOMP_RET_ERRNO | ( x & SECCOMP_RET_MASK ) , SeccompAction :: KillThread => SECCOMP_RET_KILL_THREAD , SeccompAction :: KillProcess => SECCOMP_RET_KILL_PROCESS , SeccompAction :: Log => SECCOMP_RET_LOG , SeccompAction :: Trace ( x ) => SECCOMP_RET_TRACE | ( x & SECCOMP_RET_MASK ) , SeccompAction :: Trap => SECCOMP_RET_TRAP , } }
Return codes of the BPF program for each action.
Return codes of the BPF program for each action .
action
SeccompAction
action
SeccompAction