#[non_exhaustive]pub enum SeccompProfile {
Unconfined,
RuntimeDefault,
Localhost {
path: String,
},
}Expand description
Seccomp filter selection.
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.
Unconfined
No seccomp filter applied.
RuntimeDefault
Bundled default profile (~50 blocked syscalls: ptrace,
perf_event_open, process_vm_readv, kexec_load, etc.).
Translated to OCI seccomp format and applied by the container runtime.
Localhost
Load a custom seccomp profile JSON from the given path.
Trait Implementations§
Source§impl Clone for SeccompProfile
impl Clone for SeccompProfile
Source§fn clone(&self) -> SeccompProfile
fn clone(&self) -> SeccompProfile
Returns a duplicate 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 SeccompProfile
impl Debug for SeccompProfile
Source§impl Default for SeccompProfile
impl Default for SeccompProfile
Source§fn default() -> SeccompProfile
fn default() -> SeccompProfile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SeccompProfile
impl<'de> Deserialize<'de> for SeccompProfile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SeccompProfile
impl RefUnwindSafe for SeccompProfile
impl Send for SeccompProfile
impl Sync for SeccompProfile
impl Unpin for SeccompProfile
impl UnsafeUnpin for SeccompProfile
impl UnwindSafe for SeccompProfile
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