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 26, 2025
1 parent 762f906 commit d1c0a9d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions examples/tracingpolicy/lsm_track_grandparent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: cilium.io/v1alpha1
kind: TracingPolicy
metadata:
name: "lsm"
spec:
lsmhooks:
- hook: "bprm_check_security"
args:
- index: 0
type: "string"
resolve: "mm.owner.real_parent.real_parent.comm"
selectors:
- matchActions:
- action: Post

0 comments on commit d1c0a9d

Please sign in to comment.