Enum seccompiler::SeccompAction
source · pub enum SeccompAction {
Allow,
Errno(u32),
KillThread,
KillProcess,
Log,
Trace(u32),
Trap,
}
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§
source§impl Clone for SeccompAction
impl Clone for SeccompAction
source§fn clone(&self) -> SeccompAction
fn clone(&self) -> SeccompAction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SeccompAction
impl Debug for SeccompAction
source§impl From<SeccompAction> for u32
impl From<SeccompAction> for u32
source§fn 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.
source§impl PartialEq for SeccompAction
impl PartialEq for SeccompAction
source§fn 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 ==
.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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more