Function libseccomp_sys::seccomp_init
source · [−]pub unsafe extern "C" fn seccomp_init(
def_action: u32
) -> scmp_filter_ctx
Expand description
Initialize the filter state
def_action
: the default filter action
This function initializes the internal seccomp filter state and should
be called before any other functions in this library to ensure the filter
state is initialized. Returns a filter context on success, ptr::null()
on failure.