seccomp_export_bpf

Function seccomp_export_bpf 

Source
pub unsafe extern "C" fn seccomp_export_bpf(
    ctx: const_scmp_filter_ctx,
    fd: c_int,
) -> c_int
Expand description

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

  • ctx: the filter context
  • fd: the destination fd

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