Function libscmp::reset_global_state [−][src]
pub fn reset_global_state() -> Result<()>
Expand description
Reset libseccomp
’s global state.
This only works on libseccomp v2.5.1+ (NOT v2.5.0+; this part of seccomp_reset()
’s API was
added in v2.5.1). On previous versions of libseccomp, it will fail with EINVAL.
See seccomp_reset(3) for more details (specifically, the description of what happens if the specified filter is NULL).