pub struct SeccompOpts { /* private fields */ }Expand description
Options for apply_seccomp.
Implementations§
Source§impl SeccompOpts
impl SeccompOpts
Sourcepub fn network_fallback() -> Self
pub fn network_fallback() -> Self
Apply Landlock filesystem/process sandboxing and use seccomp as the network fallback when Landlock lacks TCP filtering support.
Sourcepub fn external_tcp() -> Self
pub fn external_tcp() -> Self
Apply Landlock filesystem/process sandboxing, but skip nono-managed TCP network enforcement because the deployment enforces egress externally.
Trait Implementations§
Source§impl Clone for SeccompOpts
impl Clone for SeccompOpts
Source§fn clone(&self) -> SeccompOpts
fn clone(&self) -> SeccompOpts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SeccompOpts
Source§impl Debug for SeccompOpts
impl Debug for SeccompOpts
Source§impl Default for SeccompOpts
impl Default for SeccompOpts
impl Eq for SeccompOpts
Source§impl PartialEq for SeccompOpts
impl PartialEq for SeccompOpts
impl StructuralPartialEq for SeccompOpts
Auto Trait Implementations§
impl Freeze for SeccompOpts
impl RefUnwindSafe for SeccompOpts
impl Send for SeccompOpts
impl Sync for SeccompOpts
impl Unpin for SeccompOpts
impl UnsafeUnpin for SeccompOpts
impl UnwindSafe for SeccompOpts
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.