pub unsafe extern "C" fn seccomp_merge(
    ctx_dst: scmp_filter_ctx,
    ctx_src: scmp_filter_ctx
) -> c_int
Expand description

Merge two filters

  • ctx_dst: the destination filter context
  • ctx_src: the source filter context

This function merges two filter contexts into a single filter context and destroys the second filter context. The two filter contexts must have the same attribute values and not contain any of the same architectures; if they do, the merge operation will fail. On success, the source filter context will be destroyed and should no longer be used; it is not necessary to call seccomp_release() on the source filter context. Returns zero on success, negative values on failure.