pub struct Filter {
program: Vec<sock_filter>,
}Fields§
§program: Vec<sock_filter>Implementations§
Source§impl Filter
impl Filter
pub fn new(profile: &Profile) -> Filter
pub fn dump(&self)
Sourcepub fn activate(&self) -> Result<(), c_int>
pub fn activate(&self) -> Result<(), c_int>
Activates this filter, applying all of its restrictions forevermore. This can only be done once.
fn allow_this_syscall(&mut self)
fn allow_syscalls(&mut self, syscalls: &[u32])
fn if_syscall_is<F>(&mut self, number: u32, then: F)
fn if_arg0_is<F>(&mut self, value: u32, then: F)
fn if_arg1_is<F>(&mut self, value: u32, then: F)
fn if_arg1_hasnt_set<F>(&mut self, value: u32, then: F)
fn if_arg2_is<F>(&mut self, value: u32, then: F)
fn if_k_is<F>(&mut self, value: u32, then: F)
fn if_k_hasnt_set<F>(&mut self, value: u32, then: F)
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnsafeUnpin for Filter
impl UnwindSafe for Filter
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