Skip to content

Commit

Permalink
Add new tracingpolicy example for dynamic parameter extraction feature
Browse files Browse the repository at this point in the history
Signed-off-by: Tristan d'Audibert <tristan.daudibert@orange.com>
  • Loading branch information
ScriptSathi committed Jan 10, 2025
1 parent 9361d90 commit 18dfdc9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions examples/tracingpolicy/lsm_track_grandparent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: cilium.io/v1alpha1
kind: TracingPolicy
metadata:
name: "lsm"
spec:
lsmhooks:
- hook: "bprm_check_security"
args:
- index: 0
type: "linux_binprm"
extractParam: "mm.owner.real_parent.real_parent.comm"
overwriteType: "string"
selectors:
- matchActions:
- action: Post

0 comments on commit 18dfdc9

Please sign in to comment.