Enum seccompiler::SeccompAction
source · [−]Expand description
Actions that a seccomp filter can return for a syscall.
Variants
Allow
Allows syscall.
Errno(u32)
Returns from syscall with specified error number.
KillThread
Kills calling thread.
KillProcess
Kills calling process.
Log
Allows syscall after logging it.
Trace(u32)
Notifies tracing process of the caller with respective number.
Trap
Sends SIGSYS
to the calling process.
Trait Implementations
sourceimpl Clone for SeccompAction
impl Clone for SeccompAction
sourcefn clone(&self) -> SeccompAction
fn clone(&self) -> SeccompAction
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 SeccompAction
impl Debug for SeccompAction
sourceimpl From<SeccompAction> for u32
impl From<SeccompAction> for u32
sourcefn from(action: SeccompAction) -> Self
fn from(action: SeccompAction) -> Self
Return codes of the BPF program for each action.
Arguments
action
- TheSeccompAction
that the kernel will take.
sourceimpl PartialEq<SeccompAction> for SeccompAction
impl PartialEq<SeccompAction> for SeccompAction
sourcefn eq(&self, other: &SeccompAction) -> bool
fn eq(&self, other: &SeccompAction) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for SeccompAction
impl StructuralEq for SeccompAction
impl StructuralPartialEq for SeccompAction
Auto Trait Implementations
impl RefUnwindSafe for SeccompAction
impl Send for SeccompAction
impl Sync for SeccompAction
impl Unpin for SeccompAction
impl UnwindSafe for SeccompAction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more