Created
May 20, 2022 17:10
-
-
Save tgraf/e5bd8fb4955cac139b02b370a87b268a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: cilium.io/v1alpha1 | |
kind: TracingPolicy | |
metadata: | |
name: "capability-change" | |
spec: | |
kprobes: | |
- call: "__close_fd" | |
syscall: false | |
args: | |
- index: 0 | |
type: "nop" | |
- index: 1 | |
type: "nop" | |
selectors: | |
- matchCapabilities: | |
- type: Effective | |
operator: In | |
values: | |
- "CAP_SYS_ADMIN" | |
matchCapabilityChanges: | |
- type: Effective | |
operator: In | |
values: | |
- "CAP_SYS_ADMIN" | |
matchActions: | |
- action: Sigkill | |
argError: 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment