seccomp_sys::seccomp_syscall_priority
[−]
[src]
pub unsafe extern fn seccomp_syscall_priority(ctx: *mut scmp_filter_ctx, syscall: c_int, priority: uint8_t) -> c_int
Set the priority of a given syscall
@param ctx the filter context @param syscall the syscall number @param 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.