def seccomp_combine

bend-osdev-bpf@0.1.0.0 · seccomp.bend:186

import bend-osdev-bpf@0.1.0.0/seccomp.bend as Seccomp
import Base

186# the answer of two filters, given each one's: the higher precedence, and on
187# a tie the newer filter's action (with its data)
188def seccomp_combine(+newer: SeccompAction, +older: SeccompAction) -> SeccompAction:
189  seccomp_combine.pick(Nat.is_le(SeccompAction.rank(newer), SeccompAction.rank(older)), newer, older)

Uses (4)

Used by (5)