Enum libscmp::Action [−][src]
#[non_exhaustive] pub enum Action { KillProcess, KillThread, Trap, Notify, Log, Allow, Errno(c_int), Trace(u16), }
Expand description
Specifies an action to be taken, either as the default action for a filter or when a rule matches.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Kill the entire process (only supported in libseccomp v2.4.0+)
Kill the calling thread
Throw a SIGSYS signal
Notify userspace to allow further auditing of the syscall (only supported in libseccomp v2.5.0+)
Log the action and allow the syscall to be executed (only supported in libseccomp v2.4.0+)
ALlow the syscall to be executed
Errno(c_int)
Return the specified error code
Trace(u16)
Notify a tracing process with the specified value
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Action
impl UnwindSafe for Action
Blanket Implementations
Mutably borrows from an owned value. Read more