Skip to content

Commit

Permalink
tetragon: Add example killer policy
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Olsa <[email protected]>
  • Loading branch information
olsajiri committed Jul 11, 2023
1 parent 8f5e782 commit 21daede
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions examples/tracingpolicy/killer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: cilium.io/v1alpha1
kind: TracingPolicy
metadata:
name: "kill-syscalls"
spec:
killers:
- syscalls:
- "sys_dup"
tracepoints:
- subsystem: "raw_syscalls"
event: "sys_enter"
args:
- index: 4
type: "uint64"
selectors:
- matchArgs:
- index: 0
operator: "InRefMap"
values:
- "ref:killer"
matchPIDs:
- operator: In
followForks: true
values:
- 137562
matchActions:
- action: "NotifyKiller"
argError: -1
argSig: 9

0 comments on commit 21daede

Please sign in to comment.