pub unsafe extern "C" fn seccomp_syscall_priority(
    ctx: scmp_filter_ctx,
    syscall: c_int,
    priority: u8
) -> c_int
Expand description

Set the priority of a given syscall

  • ctx: the filter context
  • syscall: the syscall number
  • priority: priority value, higher value == higher priority

This function sets the priority of the given syscall; this value is used when generating the seccomp filter code such that higher priority syscalls will incur less filter code overhead than the lower priority syscalls in the filter. Returns zero on success, negative values on failure.