seccomp_export_bpf_mem

Function seccomp_export_bpf_mem 

Source
pub unsafe extern "C" fn seccomp_export_bpf_mem(
    ctx: const_scmp_filter_ctx,
    buf: *mut c_void,
    len: *mut usize,
) -> c_int
Expand description

Generate seccomp Berkeley Packet Filter (BPF) code and export it to a buffer

  • ctx: the filter context
  • buf: the destination buffer
  • len: on input the length of the buffer, on output the number of bytes in the program

This function generates seccomp Berkeley Packer Filter (BPF) code and writes it to the given buffer. Returns zero on success, negative values on failure.