Expand description
Seccomp filter utilities.
Enums§
- Installation
Error - Filter installation errors.
Constants§
- BPF_
MAX_ LEN - The maximum seccomp-BPF program length allowed by the linux kernel.
Functions§
- apply_
filter - Apply bpf filter.
- deserialize_
binary - Deserialize binary with bpf filters
- get_
empty_ filters - Retrieve empty seccomp filters.
Type Aliases§
- BpfInstruction
- Each BPF instruction is 8 bytes long and 4 byte aligned. This alignment needs to be satisfied in order for a BPF code to be accepted by the syscalls. Using u64 here is is safe as it has same size and even bigger alignment.
- BpfProgram
- Program made up of a sequence of BPF instructions.
- BpfProgram
Ref - Reference to program made up of a sequence of BPF instructions.
- BpfThread
Map - Type that associates a thread category to a BPF program.
- Deserialization
Error - Binary filter deserialization errors.