You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support the op_capabilities_gained operator. The operator is treated as
a specifial case. The second argument index is extracted from the
values, from which we get the args offset and, finally, the value.
The CapabilitiesGained operator checks whether a capability argument
has gained capabilities compared to another argument.
For example:
```
apiVersion: cilium.io/v1alpha1
kind: TracingPolicy
metadata:
name: "capabilities-gained"
spec:
kprobes:
- call: "security_capset"
syscall: false
return: true
args:
- index: 1
type: "cap_effective"
resolve: "cap_effective"
label: "old_creds.cap_effective"
- index: 2
type: "cap_effective"
label: "cap_effective"
returnArg:
index: 0
type: "int"
selectors:
- matchActions:
- action: Post
matchArgs:
- operator: CapabilitiesGained
args:
- 0
- 1
```
Signed-off-by: Kornilios Kourtis <[email protected]>
0 commit comments