[][src]Function seccomp_tiny::activate

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

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.