seccomp_init

Function seccomp_init 

Source
pub unsafe extern "C" fn seccomp_init(
    def_action: u32,
) -> *mut scmp_filter_ctx
Expand description

Initialize the filter state

@param 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, NULL on failure.