Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tracing: allow only one of kprobes/tracepoints/lsm
For historic reasons, the tracing sensor has three different aspects: kprobes, tracepoints, and (recently) lsm hooks. Also for historic reasons, we did not allow tracepoints and kprobes in the same policy. With the addition of the LSM sensor (8eb13e8), if a policy includes an lsm section together with either a kprobe section or a tracepoint section, the lsm section will be ignored. This patch rejects policies that have more than one section of kprobes, tracepoints, and lsm hooks in the policy. A better solution would be to decouple the tracing sensor, and create one sensor for kprobes, one for tracepoints, and one for lsm sensors. See: #2706 Fixes: 8eb13e8 Signed-off-by: Kornilios Kourtis <kornilios@isovalent.com>
- Loading branch information