Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpf: allow all operations for syscall64 type
syscall64 type allows a bit to be set to distinguish between 32- and 64-bit syscalls. Currently, the only operators that work are InMap and NotInMap. This commit extends support for other operations as well: EQ, NEQ, MASK, GT, LT. Using the MASK operator specifically, allows us to write policies for all 32-bit syscalls. For example: apiVersion: cilium.io/v1alpha1 kind: TracingPolicy metadata: name: syscalls32bit spec: tracepoints: - subsystem: raw_syscalls event: sys_enter args: - index: 4 type: syscall64 selectors: - matchArgs: - index: 0 operator: Mask values: - "2147483648" # IS_32BIT Signed-off-by: Kornilios Kourtis <kornilios@isovalent.com>
- Loading branch information