pub struct SeccompRule {
pub syscall: Sysno,
pub argument_filters: Vec<SeccompArgumentFilter>,
}Expand description
A seccomp rule.
Fields§
§syscall: SysnoThe syscall being filtered
argument_filters: Vec<SeccompArgumentFilter>Filters on the syscall’s arguments. The SeccompRule allows the syscall if all argument filters evaluate to true.
Implementations§
Source§impl SeccompRule
impl SeccompRule
Sourcepub fn new(syscall: Sysno) -> SeccompRule
pub fn new(syscall: Sysno) -> SeccompRule
Constructs a new SeccompRule that unconditionally allows the given syscall.
Sourcepub fn and_condition(
self,
argument_filter: SeccompArgumentFilter,
) -> SeccompRule
pub fn and_condition( self, argument_filter: SeccompArgumentFilter, ) -> SeccompRule
Adds a condition to the SeccompRule which must evaluate to true in order for the syscall to be
allowed.
Trait Implementations§
Source§impl Clone for SeccompRule
impl Clone for SeccompRule
Source§fn clone(&self) -> SeccompRule
fn clone(&self) -> SeccompRule
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 moreAuto Trait Implementations§
impl Freeze for SeccompRule
impl RefUnwindSafe for SeccompRule
impl Send for SeccompRule
impl Sync for SeccompRule
impl Unpin for SeccompRule
impl UnwindSafe for SeccompRule
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