activate

Function activate 

Source
pub fn activate(program: &SockFilterProg<'_>) -> Result<(), isize>
Expand description

Try to activate a seccomp program, returning the error code on failure.

If you are looking for the slightly higher level version, see crate::ProgramBuffer::activate().

See the documentation for prctl’s PR_SET_SECCOMP for detailed reasons why this may fail, and the error codes it may return.