pub fn new_filter(default_action: ScmpAction) -> Result<ScmpFilterContext> {
        let ctx_ptr = unsafe { seccomp_init(default_action.to_native()) };
        let ctx = NonNull::new(ctx_ptr)
            .ok_or_else(|| SeccompError::new(Common("Could not create new filter".to_string())))?;

        Ok(ScmpFilterContext { ctx })
    }
/// new_filter creates and returns a new filter context.
///
/// Accepts a default action to be taken for syscalls which match no rules in the filter.
/// Returns a reference to a valid filter context, or an error if the
/// filter context could not be created or an invalid default action was given.
new_filter creates and returns a new filter context.
Accepts a default action to be taken for syscalls which match no rules in the filter.
Returns a reference to a valid filter context, or an error if the
filter context could not be created or an invalid default action was given.
new_filter creates and returns a new filter context . Accepts a default action to be taken for syscalls which match no rules in the filter . Returns a reference to a valid filter context or an error if the filter context could not be created or an invalid default action was given .
pub fn new_filter(default_action: ScmpAction) -> Result<ScmpFilterContext> {
        let ctx_ptr = unsafe { seccomp_init(default_action.to_native()) };
        let ctx = NonNull::new(ctx_ptr)
            .ok_or_else(|| SeccompError::new(Common("Could not create new filter".to_string())))?;
        Ok(ScmpFilterContext { ctx })
    }
pub fn new_filter ( default_action : ScmpAction ) -> Result < ScmpFilterContext > { let ctx_ptr = unsafe { seccomp_init ( default_action . to_native ( ) ) } ; let ctx = NonNull :: new ( ctx_ptr ) . ok_or_else ( | | SeccompError :: new ( Common ( " " . to_string ( ) ) ) ) ? ; Ok ( ScmpFilterContext { ctx } ) }
new_filter creates and returns a new filter context.
new_filter creates and returns a new filter context .
default_action
ScmpAction