Function seccomp_droundy_sys::seccomp_arch_add [] [src]

pub unsafe extern "C" fn seccomp_arch_add(
    ctx: *mut scmp_filter_ctx,
    arch_token: uint32_t
) -> c_int

Adds an architecture to the filter @param ctx the filter context @param arch_token the architecture token, e.g. SCMP_ARCH_*

This function adds a new architecture to the given seccomp filter context. Any new rules added after this function successfully returns will be added to this architecture but existing rules will not be added to this architecture. If the architecture token is SCMP_ARCH_NATIVE then the native architecture will be assumed. Returns zero on success, negative values on failure.