Enum libscmp::Flag [−][src]
#[non_exhaustive] #[repr(i32)] pub enum Flag { NoNewPrivs, Tsync, Tskip, Log, DisableSSB, SysRawRC, }
Expand description
Represents a boolean flag that can be set on a filter.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Whether libseccomp
should enable the “no-new-privs” mechanism before loading the seccomp
filter (default true
).
In most cases, this should be set to true
.
Whether the kernel should attempt to synchronize the seccomp filters across all threads
when loading them into the kernel (default false
).
This is only supported on Linux 3.17+, and it may cause loading the seccomp filters to fail.
Whether libseccomp
should allow filter rules that target the -1 syscall (sometimes used
by ptrace()rs to skip syscalls; default false
). Only supported on libseccomp v2.4.0+.
Whether the kernel should log all non-“allow” actions taken (default false
). Only
supported on libseccomp v2.4.0+.
Whether to disable Speculative Store Bypass mitigation for this filter (default false
).
Only supported on libseccomp v2.5.0+.
Whether libseccomp
should pass system error codes back to the caller instead of returning
ECANCELED
(default false
). Only supported on libseccomp v2.5.0+.
Note: Use of this option is not reccommended. The Error
struct already specially checks
for ECANCELED
and retrieves the value of errno
in that case; enabling this option will
simply make the returned errors more confusing.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Flag
impl UnwindSafe for Flag
Blanket Implementations
Mutably borrows from an owned value. Read more