Tracing Policy

This reference documentation is generated from the Tracing Policy CRD specification, detailing its fields and usage.

A TracingPolicy is a user-configurable Kubernetes custom resource (CR) that defines how Tetragon observes events in both the kernel and userspace using eBPF. It supports a variety of hook points including kprobes, uprobes, tracepoints, LSM hooks, and USDTs, giving users fine-grained control over what to trace and what actions to take. Policies consist of hook points, selectors for in-kernel filtering, and optional actions that can be executed when a match occurs.

Tracing policies can be loaded and unloaded dynamically at runtime or applied at startup using configuration flags. Although structured as Kubernetes CRs, they can also be used in non-Kubernetes environments via Tetragon’s CLI or daemon flags. In Kubernetes, policies can be managed using kubectl or tools like Argo CD.

Tracing Policy API Reference

Packages:

cilium.io/v1alpha1

Resource Types:

TracingPolicy

↩ Parent

NameTypeDescriptionRequired
apiVersionstringcilium.io/v1alpha1true
kindstringTracingPolicytrue
metadataobjectRefer to the Kubernetes API documentation for the fields of the `metadata` field.true
specobjectTracing policy specification.
true

TracingPolicy.spec

↩ Parent

Tracing policy specification.

NameTypeDescriptionRequired
containerSelectorobjectContainerSelector selects containers that this policy applies to. A map of container fields will be constructed in the same way as a map of labels. The name of the field represents the label "key", and the value of the field - label "value". Currently, only the "name" field is supported.
false
enforcers[]objectA enforcer spec.
false
kprobes[]objectA list of kprobe specs.
false
lists[]objectA list of list specs.
false
loaderbooleanEnable loader events
false
lsmhooks[]objectA list of uprobe specs.
false
options[]objectA list of overloaded options
false
podSelectorobjectPodSelector selects pods that this policy applies to
false
tracepoints[]objectA list of tracepoint specs.
false
uprobes[]objectA list of uprobe specs.
false
usdts[]objectA list of usdt specs.
false

TracingPolicy.spec.containerSelector

↩ Parent

ContainerSelector selects containers that this policy applies to. A map of container fields will be constructed in the same way as a map of labels. The name of the field represents the label “key”, and the value of the field - label “value”. Currently, only the “name” field is supported.

NameTypeDescriptionRequired
matchExpressions[]objectmatchExpressions is a list of label selector requirements. The requirements are ANDed.
false
matchLabelsmap[string]stringmatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
false

TracingPolicy.spec.containerSelector.matchExpressions[index]

↩ Parent

A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.

NameTypeDescriptionRequired
keystringkey is the label key that the selector applies to.
true
operatorenumoperator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.

Enum: In, NotIn, Exists, DoesNotExist
true
values[]stringvalues is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
false

TracingPolicy.spec.enforcers[index]

↩ Parent

NameTypeDescriptionRequired
calls[]stringCalls where enforcer is executed in
true

TracingPolicy.spec.kprobes[index]

↩ Parent

NameTypeDescriptionRequired
callstringName of the function to apply the kprobe spec to.
true
args[]objectA list of function arguments to include in the trace output.
false
ignoreobjectConditions for ignoring this kprobe
false
messagestringA short message of 256 characters max that will be included in the event output to inform users what is going on.
false
returnbooleanIndicates whether to collect return value of the traced function.

Default: false
false
returnArgobjectA return argument to include in the trace output.
false
returnArgActionstringAn action to perform on the return argument. Available actions are: Post;TrackSock;UntrackSock
false
selectors[]objectSelectors to apply before producing trace output. Selectors are ORed and short-circuited.
false
syscallbooleanIndicates whether the traced function is a syscall.

Default: true
false
tags[]stringTags to categorize the event, will be include in the event output. Maximum of 16 Tags are supported.
false

TracingPolicy.spec.kprobes[index].args[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument.

Format: int32
Minimum: 0
true
typeenumArgument type.

Enum: auto, int, int8, uint8, int16, uint16, uint32, int32, uint64, int64, char_buf, char_iovec, size_t, skb, sock, sockaddr, socket, string, fd, file, filename, path, nop, bpf_attr, perf_event, bpf_map, user_namespace, capability, kiocb, iov_iter, cred, load_info, module, syscall64, kernel_cap_t, cap_inheritable, cap_permitted, cap_effective, linux_binprm, data_loc, net_device, bpf_cmd, dentry
Default: auto
true
labelstringLabel to output in the JSON
false
maxDatabooleanRead maximum possible data (currently 327360). This field is only used for char_buff data. When this value is false (default), the bpf program will fetch at most 4096 bytes. In later kernels (>=5.4) tetragon supports fetching up to 327360 bytes if this flag is turned on

Default: false
false
resolvestringResolve the path to a specific attribute

Default:
false
returnCopybooleanThis field is used only for char_buf and char_iovec types. It indicates that this argument should be read later (when the kretprobe for the symbol is triggered) because it might not be populated when the kprobe is triggered at the entrance of the function. For example, a buffer supplied to read(2) won't have content until kretprobe is triggered.

Default: false
false
sizeArgIndexintegerSpecifies the position of the corresponding size argument for this argument. This field is used only for char_buf and char_iovec types.

Format: int32
Minimum: 0
false

TracingPolicy.spec.kprobes[index].ignore

↩ Parent

Conditions for ignoring this kprobe

NameTypeDescriptionRequired
callNotFoundbooleanIgnores calls that are not present in the system
false

TracingPolicy.spec.kprobes[index].returnArg

↩ Parent

A return argument to include in the trace output.

NameTypeDescriptionRequired
indexintegerPosition of the argument.

Format: int32
Minimum: 0
true
typeenumArgument type.

Enum: auto, int, int8, uint8, int16, uint16, uint32, int32, uint64, int64, char_buf, char_iovec, size_t, skb, sock, sockaddr, socket, string, fd, file, filename, path, nop, bpf_attr, perf_event, bpf_map, user_namespace, capability, kiocb, iov_iter, cred, load_info, module, syscall64, kernel_cap_t, cap_inheritable, cap_permitted, cap_effective, linux_binprm, data_loc, net_device, bpf_cmd, dentry
Default: auto
true
labelstringLabel to output in the JSON
false
maxDatabooleanRead maximum possible data (currently 327360). This field is only used for char_buff data. When this value is false (default), the bpf program will fetch at most 4096 bytes. In later kernels (>=5.4) tetragon supports fetching up to 327360 bytes if this flag is turned on

Default: false
false
resolvestringResolve the path to a specific attribute

Default:
false
returnCopybooleanThis field is used only for char_buf and char_iovec types. It indicates that this argument should be read later (when the kretprobe for the symbol is triggered) because it might not be populated when the kprobe is triggered at the entrance of the function. For example, a buffer supplied to read(2) won't have content until kretprobe is triggered.

Default: false
false
sizeArgIndexintegerSpecifies the position of the corresponding size argument for this argument. This field is used only for char_buf and char_iovec types.

Format: int32
Minimum: 0
false

TracingPolicy.spec.kprobes[index].selectors[index]

↩ Parent

KProbeSelector selects function calls for kprobe based on PIDs and function arguments. The results of MatchPIDs and MatchArgs are ANDed.

NameTypeDescriptionRequired
matchActions[]objectA list of actions to execute when this selector matches
false
matchArgs[]objectA list of argument filters. MatchArgs are ANDed.
false
matchBinaries[]objectA list of binary exec name filters.
false
matchCapabilities[]objectA list of capabilities and IDs
false
matchCapabilityChanges[]objectIDs for capabilities changes
false
matchNamespaceChanges[]objectIDs for namespace changes
false
matchNamespaces[]objectA list of namespaces and IDs
false
matchPIDs[]objectA list of process ID filters. MatchPIDs are ANDed.
false
matchReturnActions[]objectA list of actions to execute when MatchReturnArgs selector matches
false
matchReturnArgs[]objectA list of argument filters. MatchArgs are ANDed.
false

TracingPolicy.spec.kprobes[index].selectors[index].matchActions[index]

↩ Parent

NameTypeDescriptionRequired
actionenumAction to execute. NOTE: actions FollowFD, UnfollowFD, and CopyFD are marked as deprecated and planned to be removed in version 1.5.

Enum: Post, FollowFD, UnfollowFD, Sigkill, CopyFD, Override, GetUrl, DnsLookup, NoPost, Signal, TrackSock, UntrackSock, NotifyEnforcer, CleanupEnforcerNotification
true
argErrorintegererror value for override action

Format: int32
false
argFdintegerAn arg index for the fd for fdInstall action

Format: int32
false
argFqdnstringA FQDN to lookup for the dnsLookup action
false
argNameintegerAn arg index for the filename for fdInstall action

Format: int32
false
argSigintegerA signal number for signal action

Format: int32
false
argSockintegerAn arg index for the sock for trackSock and untrackSock actions

Format: int32
false
argUrlstringA URL for the getUrl action
false
imaHashbooleanEnable collection of file hashes from integrity subsystem. Only valid with the post action.
false
kernelStackTracebooleanEnable kernel stack trace export. Only valid with the post action.
false
rateLimitstringA time period within which repeated messages will not be posted. Can be specified in seconds (default or with 's' suffix), minutes ('m' suffix) or hours ('h' suffix). Only valid with the post action.
false
rateLimitScopestringThe scope of the provided rate limit argument. Can be "thread" (default), "process" (all threads for the same process), or "global". If "thread" is selected then rate limiting applies per thread; if "process" is selected then rate limiting applies per process; if "global" is selected then rate limiting applies regardless of which process or thread caused the action. Only valid with the post action and with a rateLimit specified.
false
userStackTracebooleanEnable user stack trace export. Only valid with the post action.
false

TracingPolicy.spec.kprobes[index].selectors[index].matchArgs[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument (in function prototype) to apply fhe filter to.

Format: int32
Minimum: 0
true
operatorenumFilter operation.

Enum: Equal, NotEqual, Prefix, NotPrefix, Postfix, NotPostfix, GreaterThan, LessThan, GT, LT, Mask, SPort, NotSPort, SPortPriv, NotSportPriv, DPort, NotDPort, DPortPriv, NotDPortPriv, SAddr, NotSAddr, DAddr, NotDAddr, Protocol, Family, State, InMap, NotInMap, CapabilitiesGained
true
args[]integerPosition of the operator arguments (in spec file) to apply fhe filter to.
false
values[]stringValue to compare the argument against.
false

TracingPolicy.spec.kprobes[index].selectors[index].matchBinaries[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumFilter operation.

Enum: In, NotIn, Prefix, NotPrefix, Postfix, NotPostfix
true
values[]stringValue to compare the argument against.
true
followChildrenbooleanIn addition to binaries, match children processes of specified binaries.

Default: false
false

TracingPolicy.spec.kprobes[index].selectors[index].matchCapabilities[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringCapabilities to match.
true
isNamespaceCapabilitybooleanIndicates whether these caps are namespace caps.

Default: false
false
typeenumType of capabilities

Enum: Effective, Inheritable, Permitted
Default: Effective
false

TracingPolicy.spec.kprobes[index].selectors[index].matchCapabilityChanges[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringCapabilities to match.
true
isNamespaceCapabilitybooleanIndicates whether these caps are namespace caps.

Default: false
false
typeenumType of capabilities

Enum: Effective, Inheritable, Permitted
Default: Effective
false

TracingPolicy.spec.kprobes[index].selectors[index].matchNamespaceChanges[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringNamespace types (e.g., Mnt, Pid) to match.
true

TracingPolicy.spec.kprobes[index].selectors[index].matchNamespaces[index]

↩ Parent

NameTypeDescriptionRequired
namespaceenumNamespace selector name.

Enum: Uts, Ipc, Mnt, Pid, PidForChildren, Net, Time, TimeForChildren, Cgroup, User
true
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringNamespace IDs (or host_ns for host namespace) of namespaces to match.
true

TracingPolicy.spec.kprobes[index].selectors[index].matchPIDs[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumPID selector operator.

Enum: In, NotIn
true
values[]integerProcess IDs to match.
true
followForksbooleanMatches any descendant processes of the matching PIDs.

Default: false
false
isNamespacePIDbooleanIndicates whether PIDs are namespace PIDs.

Default: false
false

TracingPolicy.spec.kprobes[index].selectors[index].matchReturnActions[index]

↩ Parent

NameTypeDescriptionRequired
actionenumAction to execute. NOTE: actions FollowFD, UnfollowFD, and CopyFD are marked as deprecated and planned to be removed in version 1.5.

Enum: Post, FollowFD, UnfollowFD, Sigkill, CopyFD, Override, GetUrl, DnsLookup, NoPost, Signal, TrackSock, UntrackSock, NotifyEnforcer, CleanupEnforcerNotification
true
argErrorintegererror value for override action

Format: int32
false
argFdintegerAn arg index for the fd for fdInstall action

Format: int32
false
argFqdnstringA FQDN to lookup for the dnsLookup action
false
argNameintegerAn arg index for the filename for fdInstall action

Format: int32
false
argSigintegerA signal number for signal action

Format: int32
false
argSockintegerAn arg index for the sock for trackSock and untrackSock actions

Format: int32
false
argUrlstringA URL for the getUrl action
false
imaHashbooleanEnable collection of file hashes from integrity subsystem. Only valid with the post action.
false
kernelStackTracebooleanEnable kernel stack trace export. Only valid with the post action.
false
rateLimitstringA time period within which repeated messages will not be posted. Can be specified in seconds (default or with 's' suffix), minutes ('m' suffix) or hours ('h' suffix). Only valid with the post action.
false
rateLimitScopestringThe scope of the provided rate limit argument. Can be "thread" (default), "process" (all threads for the same process), or "global". If "thread" is selected then rate limiting applies per thread; if "process" is selected then rate limiting applies per process; if "global" is selected then rate limiting applies regardless of which process or thread caused the action. Only valid with the post action and with a rateLimit specified.
false
userStackTracebooleanEnable user stack trace export. Only valid with the post action.
false

TracingPolicy.spec.kprobes[index].selectors[index].matchReturnArgs[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument (in function prototype) to apply fhe filter to.

Format: int32
Minimum: 0
true
operatorenumFilter operation.

Enum: Equal, NotEqual, Prefix, NotPrefix, Postfix, NotPostfix, GreaterThan, LessThan, GT, LT, Mask, SPort, NotSPort, SPortPriv, NotSportPriv, DPort, NotDPort, DPortPriv, NotDPortPriv, SAddr, NotSAddr, DAddr, NotDAddr, Protocol, Family, State, InMap, NotInMap, CapabilitiesGained
true
args[]integerPosition of the operator arguments (in spec file) to apply fhe filter to.
false
values[]stringValue to compare the argument against.
false

TracingPolicy.spec.lists[index]

↩ Parent

NameTypeDescriptionRequired
namestringName of the list
true
patternstringPattern for 'generated' lists.
false
typeenumIndicates the type of the list values.

Enum: syscalls, generated_syscalls, generated_ftrace
false
validatedbooleanList was validated
false
values[]stringValues of the list
false

TracingPolicy.spec.lsmhooks[index]

↩ Parent

NameTypeDescriptionRequired
hookstringName of the function to apply the kprobe spec to.
true
args[]objectA list of function arguments to include in the trace output.
false
messagestringA short message of 256 characters max that will be included in the event output to inform users what is going on.
false
selectors[]objectSelectors to apply before producing trace output. Selectors are ORed.
false
tags[]stringTags to categorize the event, will be include in the event output. Maximum of 16 Tags are supported.
false

TracingPolicy.spec.lsmhooks[index].args[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument.

Format: int32
Minimum: 0
true
typeenumArgument type.

Enum: auto, int, int8, uint8, int16, uint16, uint32, int32, uint64, int64, char_buf, char_iovec, size_t, skb, sock, sockaddr, socket, string, fd, file, filename, path, nop, bpf_attr, perf_event, bpf_map, user_namespace, capability, kiocb, iov_iter, cred, load_info, module, syscall64, kernel_cap_t, cap_inheritable, cap_permitted, cap_effective, linux_binprm, data_loc, net_device, bpf_cmd, dentry
Default: auto
true
labelstringLabel to output in the JSON
false
maxDatabooleanRead maximum possible data (currently 327360). This field is only used for char_buff data. When this value is false (default), the bpf program will fetch at most 4096 bytes. In later kernels (>=5.4) tetragon supports fetching up to 327360 bytes if this flag is turned on

Default: false
false
resolvestringResolve the path to a specific attribute

Default:
false
returnCopybooleanThis field is used only for char_buf and char_iovec types. It indicates that this argument should be read later (when the kretprobe for the symbol is triggered) because it might not be populated when the kprobe is triggered at the entrance of the function. For example, a buffer supplied to read(2) won't have content until kretprobe is triggered.

Default: false
false
sizeArgIndexintegerSpecifies the position of the corresponding size argument for this argument. This field is used only for char_buf and char_iovec types.

Format: int32
Minimum: 0
false

TracingPolicy.spec.lsmhooks[index].selectors[index]

↩ Parent

KProbeSelector selects function calls for kprobe based on PIDs and function arguments. The results of MatchPIDs and MatchArgs are ANDed.

NameTypeDescriptionRequired
matchActions[]objectA list of actions to execute when this selector matches
false
matchArgs[]objectA list of argument filters. MatchArgs are ANDed.
false
matchBinaries[]objectA list of binary exec name filters.
false
matchCapabilities[]objectA list of capabilities and IDs
false
matchCapabilityChanges[]objectIDs for capabilities changes
false
matchNamespaceChanges[]objectIDs for namespace changes
false
matchNamespaces[]objectA list of namespaces and IDs
false
matchPIDs[]objectA list of process ID filters. MatchPIDs are ANDed.
false
matchReturnActions[]objectA list of actions to execute when MatchReturnArgs selector matches
false
matchReturnArgs[]objectA list of argument filters. MatchArgs are ANDed.
false

TracingPolicy.spec.lsmhooks[index].selectors[index].matchActions[index]

↩ Parent

NameTypeDescriptionRequired
actionenumAction to execute. NOTE: actions FollowFD, UnfollowFD, and CopyFD are marked as deprecated and planned to be removed in version 1.5.

Enum: Post, FollowFD, UnfollowFD, Sigkill, CopyFD, Override, GetUrl, DnsLookup, NoPost, Signal, TrackSock, UntrackSock, NotifyEnforcer, CleanupEnforcerNotification
true
argErrorintegererror value for override action

Format: int32
false
argFdintegerAn arg index for the fd for fdInstall action

Format: int32
false
argFqdnstringA FQDN to lookup for the dnsLookup action
false
argNameintegerAn arg index for the filename for fdInstall action

Format: int32
false
argSigintegerA signal number for signal action

Format: int32
false
argSockintegerAn arg index for the sock for trackSock and untrackSock actions

Format: int32
false
argUrlstringA URL for the getUrl action
false
imaHashbooleanEnable collection of file hashes from integrity subsystem. Only valid with the post action.
false
kernelStackTracebooleanEnable kernel stack trace export. Only valid with the post action.
false
rateLimitstringA time period within which repeated messages will not be posted. Can be specified in seconds (default or with 's' suffix), minutes ('m' suffix) or hours ('h' suffix). Only valid with the post action.
false
rateLimitScopestringThe scope of the provided rate limit argument. Can be "thread" (default), "process" (all threads for the same process), or "global". If "thread" is selected then rate limiting applies per thread; if "process" is selected then rate limiting applies per process; if "global" is selected then rate limiting applies regardless of which process or thread caused the action. Only valid with the post action and with a rateLimit specified.
false
userStackTracebooleanEnable user stack trace export. Only valid with the post action.
false

TracingPolicy.spec.lsmhooks[index].selectors[index].matchArgs[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument (in function prototype) to apply fhe filter to.

Format: int32
Minimum: 0
true
operatorenumFilter operation.

Enum: Equal, NotEqual, Prefix, NotPrefix, Postfix, NotPostfix, GreaterThan, LessThan, GT, LT, Mask, SPort, NotSPort, SPortPriv, NotSportPriv, DPort, NotDPort, DPortPriv, NotDPortPriv, SAddr, NotSAddr, DAddr, NotDAddr, Protocol, Family, State, InMap, NotInMap, CapabilitiesGained
true
args[]integerPosition of the operator arguments (in spec file) to apply fhe filter to.
false
values[]stringValue to compare the argument against.
false

TracingPolicy.spec.lsmhooks[index].selectors[index].matchBinaries[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumFilter operation.

Enum: In, NotIn, Prefix, NotPrefix, Postfix, NotPostfix
true
values[]stringValue to compare the argument against.
true
followChildrenbooleanIn addition to binaries, match children processes of specified binaries.

Default: false
false

TracingPolicy.spec.lsmhooks[index].selectors[index].matchCapabilities[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringCapabilities to match.
true
isNamespaceCapabilitybooleanIndicates whether these caps are namespace caps.

Default: false
false
typeenumType of capabilities

Enum: Effective, Inheritable, Permitted
Default: Effective
false

TracingPolicy.spec.lsmhooks[index].selectors[index].matchCapabilityChanges[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringCapabilities to match.
true
isNamespaceCapabilitybooleanIndicates whether these caps are namespace caps.

Default: false
false
typeenumType of capabilities

Enum: Effective, Inheritable, Permitted
Default: Effective
false

TracingPolicy.spec.lsmhooks[index].selectors[index].matchNamespaceChanges[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringNamespace types (e.g., Mnt, Pid) to match.
true

TracingPolicy.spec.lsmhooks[index].selectors[index].matchNamespaces[index]

↩ Parent

NameTypeDescriptionRequired
namespaceenumNamespace selector name.

Enum: Uts, Ipc, Mnt, Pid, PidForChildren, Net, Time, TimeForChildren, Cgroup, User
true
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringNamespace IDs (or host_ns for host namespace) of namespaces to match.
true

TracingPolicy.spec.lsmhooks[index].selectors[index].matchPIDs[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumPID selector operator.

Enum: In, NotIn
true
values[]integerProcess IDs to match.
true
followForksbooleanMatches any descendant processes of the matching PIDs.

Default: false
false
isNamespacePIDbooleanIndicates whether PIDs are namespace PIDs.

Default: false
false

TracingPolicy.spec.lsmhooks[index].selectors[index].matchReturnActions[index]

↩ Parent

NameTypeDescriptionRequired
actionenumAction to execute. NOTE: actions FollowFD, UnfollowFD, and CopyFD are marked as deprecated and planned to be removed in version 1.5.

Enum: Post, FollowFD, UnfollowFD, Sigkill, CopyFD, Override, GetUrl, DnsLookup, NoPost, Signal, TrackSock, UntrackSock, NotifyEnforcer, CleanupEnforcerNotification
true
argErrorintegererror value for override action

Format: int32
false
argFdintegerAn arg index for the fd for fdInstall action

Format: int32
false
argFqdnstringA FQDN to lookup for the dnsLookup action
false
argNameintegerAn arg index for the filename for fdInstall action

Format: int32
false
argSigintegerA signal number for signal action

Format: int32
false
argSockintegerAn arg index for the sock for trackSock and untrackSock actions

Format: int32
false
argUrlstringA URL for the getUrl action
false
imaHashbooleanEnable collection of file hashes from integrity subsystem. Only valid with the post action.
false
kernelStackTracebooleanEnable kernel stack trace export. Only valid with the post action.
false
rateLimitstringA time period within which repeated messages will not be posted. Can be specified in seconds (default or with 's' suffix), minutes ('m' suffix) or hours ('h' suffix). Only valid with the post action.
false
rateLimitScopestringThe scope of the provided rate limit argument. Can be "thread" (default), "process" (all threads for the same process), or "global". If "thread" is selected then rate limiting applies per thread; if "process" is selected then rate limiting applies per process; if "global" is selected then rate limiting applies regardless of which process or thread caused the action. Only valid with the post action and with a rateLimit specified.
false
userStackTracebooleanEnable user stack trace export. Only valid with the post action.
false

TracingPolicy.spec.lsmhooks[index].selectors[index].matchReturnArgs[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument (in function prototype) to apply fhe filter to.

Format: int32
Minimum: 0
true
operatorenumFilter operation.

Enum: Equal, NotEqual, Prefix, NotPrefix, Postfix, NotPostfix, GreaterThan, LessThan, GT, LT, Mask, SPort, NotSPort, SPortPriv, NotSportPriv, DPort, NotDPort, DPortPriv, NotDPortPriv, SAddr, NotSAddr, DAddr, NotDAddr, Protocol, Family, State, InMap, NotInMap, CapabilitiesGained
true
args[]integerPosition of the operator arguments (in spec file) to apply fhe filter to.
false
values[]stringValue to compare the argument against.
false

TracingPolicy.spec.options[index]

↩ Parent

NameTypeDescriptionRequired
namestringName of the option
true
valuestringValue of the option
false

TracingPolicy.spec.podSelector

↩ Parent

PodSelector selects pods that this policy applies to

NameTypeDescriptionRequired
matchExpressions[]objectmatchExpressions is a list of label selector requirements. The requirements are ANDed.
false
matchLabelsmap[string]stringmatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
false

TracingPolicy.spec.podSelector.matchExpressions[index]

↩ Parent

A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.

NameTypeDescriptionRequired
keystringkey is the label key that the selector applies to.
true
operatorenumoperator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.

Enum: In, NotIn, Exists, DoesNotExist
true
values[]stringvalues is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
false

TracingPolicy.spec.tracepoints[index]

↩ Parent

NameTypeDescriptionRequired
eventstringTracepoint event
true
subsystemstringTracepoint subsystem
true
args[]objectA list of function arguments to include in the trace output.
false
messagestringA short message of 256 characters max that will be included in the event output to inform users what is going on.
false
rawbooleanEnable raw tracepoint arguments
false
selectors[]objectSelectors to apply before producing trace output. Selectors are ORed.
false
tags[]stringTags to categorize the event, will be include in the event output. Maximum of 16 Tags are supported.
false

TracingPolicy.spec.tracepoints[index].args[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument.

Format: int32
Minimum: 0
true
typeenumArgument type.

Enum: auto, int, int8, uint8, int16, uint16, uint32, int32, uint64, int64, char_buf, char_iovec, size_t, skb, sock, sockaddr, socket, string, fd, file, filename, path, nop, bpf_attr, perf_event, bpf_map, user_namespace, capability, kiocb, iov_iter, cred, load_info, module, syscall64, kernel_cap_t, cap_inheritable, cap_permitted, cap_effective, linux_binprm, data_loc, net_device, bpf_cmd, dentry
Default: auto
true
labelstringLabel to output in the JSON
false
maxDatabooleanRead maximum possible data (currently 327360). This field is only used for char_buff data. When this value is false (default), the bpf program will fetch at most 4096 bytes. In later kernels (>=5.4) tetragon supports fetching up to 327360 bytes if this flag is turned on

Default: false
false
resolvestringResolve the path to a specific attribute

Default:
false
returnCopybooleanThis field is used only for char_buf and char_iovec types. It indicates that this argument should be read later (when the kretprobe for the symbol is triggered) because it might not be populated when the kprobe is triggered at the entrance of the function. For example, a buffer supplied to read(2) won't have content until kretprobe is triggered.

Default: false
false
sizeArgIndexintegerSpecifies the position of the corresponding size argument for this argument. This field is used only for char_buf and char_iovec types.

Format: int32
Minimum: 0
false

TracingPolicy.spec.tracepoints[index].selectors[index]

↩ Parent

KProbeSelector selects function calls for kprobe based on PIDs and function arguments. The results of MatchPIDs and MatchArgs are ANDed.

NameTypeDescriptionRequired
matchActions[]objectA list of actions to execute when this selector matches
false
matchArgs[]objectA list of argument filters. MatchArgs are ANDed.
false
matchBinaries[]objectA list of binary exec name filters.
false
matchCapabilities[]objectA list of capabilities and IDs
false
matchCapabilityChanges[]objectIDs for capabilities changes
false
matchNamespaceChanges[]objectIDs for namespace changes
false
matchNamespaces[]objectA list of namespaces and IDs
false
matchPIDs[]objectA list of process ID filters. MatchPIDs are ANDed.
false
matchReturnActions[]objectA list of actions to execute when MatchReturnArgs selector matches
false
matchReturnArgs[]objectA list of argument filters. MatchArgs are ANDed.
false

TracingPolicy.spec.tracepoints[index].selectors[index].matchActions[index]

↩ Parent

NameTypeDescriptionRequired
actionenumAction to execute. NOTE: actions FollowFD, UnfollowFD, and CopyFD are marked as deprecated and planned to be removed in version 1.5.

Enum: Post, FollowFD, UnfollowFD, Sigkill, CopyFD, Override, GetUrl, DnsLookup, NoPost, Signal, TrackSock, UntrackSock, NotifyEnforcer, CleanupEnforcerNotification
true
argErrorintegererror value for override action

Format: int32
false
argFdintegerAn arg index for the fd for fdInstall action

Format: int32
false
argFqdnstringA FQDN to lookup for the dnsLookup action
false
argNameintegerAn arg index for the filename for fdInstall action

Format: int32
false
argSigintegerA signal number for signal action

Format: int32
false
argSockintegerAn arg index for the sock for trackSock and untrackSock actions

Format: int32
false
argUrlstringA URL for the getUrl action
false
imaHashbooleanEnable collection of file hashes from integrity subsystem. Only valid with the post action.
false
kernelStackTracebooleanEnable kernel stack trace export. Only valid with the post action.
false
rateLimitstringA time period within which repeated messages will not be posted. Can be specified in seconds (default or with 's' suffix), minutes ('m' suffix) or hours ('h' suffix). Only valid with the post action.
false
rateLimitScopestringThe scope of the provided rate limit argument. Can be "thread" (default), "process" (all threads for the same process), or "global". If "thread" is selected then rate limiting applies per thread; if "process" is selected then rate limiting applies per process; if "global" is selected then rate limiting applies regardless of which process or thread caused the action. Only valid with the post action and with a rateLimit specified.
false
userStackTracebooleanEnable user stack trace export. Only valid with the post action.
false

TracingPolicy.spec.tracepoints[index].selectors[index].matchArgs[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument (in function prototype) to apply fhe filter to.

Format: int32
Minimum: 0
true
operatorenumFilter operation.

Enum: Equal, NotEqual, Prefix, NotPrefix, Postfix, NotPostfix, GreaterThan, LessThan, GT, LT, Mask, SPort, NotSPort, SPortPriv, NotSportPriv, DPort, NotDPort, DPortPriv, NotDPortPriv, SAddr, NotSAddr, DAddr, NotDAddr, Protocol, Family, State, InMap, NotInMap, CapabilitiesGained
true
args[]integerPosition of the operator arguments (in spec file) to apply fhe filter to.
false
values[]stringValue to compare the argument against.
false

TracingPolicy.spec.tracepoints[index].selectors[index].matchBinaries[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumFilter operation.

Enum: In, NotIn, Prefix, NotPrefix, Postfix, NotPostfix
true
values[]stringValue to compare the argument against.
true
followChildrenbooleanIn addition to binaries, match children processes of specified binaries.

Default: false
false

TracingPolicy.spec.tracepoints[index].selectors[index].matchCapabilities[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringCapabilities to match.
true
isNamespaceCapabilitybooleanIndicates whether these caps are namespace caps.

Default: false
false
typeenumType of capabilities

Enum: Effective, Inheritable, Permitted
Default: Effective
false

TracingPolicy.spec.tracepoints[index].selectors[index].matchCapabilityChanges[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringCapabilities to match.
true
isNamespaceCapabilitybooleanIndicates whether these caps are namespace caps.

Default: false
false
typeenumType of capabilities

Enum: Effective, Inheritable, Permitted
Default: Effective
false

TracingPolicy.spec.tracepoints[index].selectors[index].matchNamespaceChanges[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringNamespace types (e.g., Mnt, Pid) to match.
true

TracingPolicy.spec.tracepoints[index].selectors[index].matchNamespaces[index]

↩ Parent

NameTypeDescriptionRequired
namespaceenumNamespace selector name.

Enum: Uts, Ipc, Mnt, Pid, PidForChildren, Net, Time, TimeForChildren, Cgroup, User
true
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringNamespace IDs (or host_ns for host namespace) of namespaces to match.
true

TracingPolicy.spec.tracepoints[index].selectors[index].matchPIDs[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumPID selector operator.

Enum: In, NotIn
true
values[]integerProcess IDs to match.
true
followForksbooleanMatches any descendant processes of the matching PIDs.

Default: false
false
isNamespacePIDbooleanIndicates whether PIDs are namespace PIDs.

Default: false
false

TracingPolicy.spec.tracepoints[index].selectors[index].matchReturnActions[index]

↩ Parent

NameTypeDescriptionRequired
actionenumAction to execute. NOTE: actions FollowFD, UnfollowFD, and CopyFD are marked as deprecated and planned to be removed in version 1.5.

Enum: Post, FollowFD, UnfollowFD, Sigkill, CopyFD, Override, GetUrl, DnsLookup, NoPost, Signal, TrackSock, UntrackSock, NotifyEnforcer, CleanupEnforcerNotification
true
argErrorintegererror value for override action

Format: int32
false
argFdintegerAn arg index for the fd for fdInstall action

Format: int32
false
argFqdnstringA FQDN to lookup for the dnsLookup action
false
argNameintegerAn arg index for the filename for fdInstall action

Format: int32
false
argSigintegerA signal number for signal action

Format: int32
false
argSockintegerAn arg index for the sock for trackSock and untrackSock actions

Format: int32
false
argUrlstringA URL for the getUrl action
false
imaHashbooleanEnable collection of file hashes from integrity subsystem. Only valid with the post action.
false
kernelStackTracebooleanEnable kernel stack trace export. Only valid with the post action.
false
rateLimitstringA time period within which repeated messages will not be posted. Can be specified in seconds (default or with 's' suffix), minutes ('m' suffix) or hours ('h' suffix). Only valid with the post action.
false
rateLimitScopestringThe scope of the provided rate limit argument. Can be "thread" (default), "process" (all threads for the same process), or "global". If "thread" is selected then rate limiting applies per thread; if "process" is selected then rate limiting applies per process; if "global" is selected then rate limiting applies regardless of which process or thread caused the action. Only valid with the post action and with a rateLimit specified.
false
userStackTracebooleanEnable user stack trace export. Only valid with the post action.
false

TracingPolicy.spec.tracepoints[index].selectors[index].matchReturnArgs[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument (in function prototype) to apply fhe filter to.

Format: int32
Minimum: 0
true
operatorenumFilter operation.

Enum: Equal, NotEqual, Prefix, NotPrefix, Postfix, NotPostfix, GreaterThan, LessThan, GT, LT, Mask, SPort, NotSPort, SPortPriv, NotSportPriv, DPort, NotDPort, DPortPriv, NotDPortPriv, SAddr, NotSAddr, DAddr, NotDAddr, Protocol, Family, State, InMap, NotInMap, CapabilitiesGained
true
args[]integerPosition of the operator arguments (in spec file) to apply fhe filter to.
false
values[]stringValue to compare the argument against.
false

TracingPolicy.spec.uprobes[index]

↩ Parent

NameTypeDescriptionRequired
pathstringName of the traced binary
true
args[]objectA list of function arguments to include in the trace output.
false
messagestringA short message of 256 characters max that will be included in the event output to inform users what is going on.
false
offsets[]integerList of the traced offsets
false
refCtrOffsets[]integerList of the traced ref_ctr_offsets
false
selectors[]objectSelectors to apply before producing trace output. Selectors are ORed.
false
symbols[]stringList of the traced symbols
false
tags[]stringTags to categorize the event, will be include in the event output. Maximum of 16 Tags are supported.
false

TracingPolicy.spec.uprobes[index].args[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument.

Format: int32
Minimum: 0
true
typeenumArgument type.

Enum: auto, int, int8, uint8, int16, uint16, uint32, int32, uint64, int64, char_buf, char_iovec, size_t, skb, sock, sockaddr, socket, string, fd, file, filename, path, nop, bpf_attr, perf_event, bpf_map, user_namespace, capability, kiocb, iov_iter, cred, load_info, module, syscall64, kernel_cap_t, cap_inheritable, cap_permitted, cap_effective, linux_binprm, data_loc, net_device, bpf_cmd, dentry
Default: auto
true
labelstringLabel to output in the JSON
false
maxDatabooleanRead maximum possible data (currently 327360). This field is only used for char_buff data. When this value is false (default), the bpf program will fetch at most 4096 bytes. In later kernels (>=5.4) tetragon supports fetching up to 327360 bytes if this flag is turned on

Default: false
false
resolvestringResolve the path to a specific attribute

Default:
false
returnCopybooleanThis field is used only for char_buf and char_iovec types. It indicates that this argument should be read later (when the kretprobe for the symbol is triggered) because it might not be populated when the kprobe is triggered at the entrance of the function. For example, a buffer supplied to read(2) won't have content until kretprobe is triggered.

Default: false
false
sizeArgIndexintegerSpecifies the position of the corresponding size argument for this argument. This field is used only for char_buf and char_iovec types.

Format: int32
Minimum: 0
false

TracingPolicy.spec.uprobes[index].selectors[index]

↩ Parent

KProbeSelector selects function calls for kprobe based on PIDs and function arguments. The results of MatchPIDs and MatchArgs are ANDed.

NameTypeDescriptionRequired
matchActions[]objectA list of actions to execute when this selector matches
false
matchArgs[]objectA list of argument filters. MatchArgs are ANDed.
false
matchBinaries[]objectA list of binary exec name filters.
false
matchCapabilities[]objectA list of capabilities and IDs
false
matchCapabilityChanges[]objectIDs for capabilities changes
false
matchNamespaceChanges[]objectIDs for namespace changes
false
matchNamespaces[]objectA list of namespaces and IDs
false
matchPIDs[]objectA list of process ID filters. MatchPIDs are ANDed.
false
matchReturnActions[]objectA list of actions to execute when MatchReturnArgs selector matches
false
matchReturnArgs[]objectA list of argument filters. MatchArgs are ANDed.
false

TracingPolicy.spec.uprobes[index].selectors[index].matchActions[index]

↩ Parent

NameTypeDescriptionRequired
actionenumAction to execute. NOTE: actions FollowFD, UnfollowFD, and CopyFD are marked as deprecated and planned to be removed in version 1.5.

Enum: Post, FollowFD, UnfollowFD, Sigkill, CopyFD, Override, GetUrl, DnsLookup, NoPost, Signal, TrackSock, UntrackSock, NotifyEnforcer, CleanupEnforcerNotification
true
argErrorintegererror value for override action

Format: int32
false
argFdintegerAn arg index for the fd for fdInstall action

Format: int32
false
argFqdnstringA FQDN to lookup for the dnsLookup action
false
argNameintegerAn arg index for the filename for fdInstall action

Format: int32
false
argSigintegerA signal number for signal action

Format: int32
false
argSockintegerAn arg index for the sock for trackSock and untrackSock actions

Format: int32
false
argUrlstringA URL for the getUrl action
false
imaHashbooleanEnable collection of file hashes from integrity subsystem. Only valid with the post action.
false
kernelStackTracebooleanEnable kernel stack trace export. Only valid with the post action.
false
rateLimitstringA time period within which repeated messages will not be posted. Can be specified in seconds (default or with 's' suffix), minutes ('m' suffix) or hours ('h' suffix). Only valid with the post action.
false
rateLimitScopestringThe scope of the provided rate limit argument. Can be "thread" (default), "process" (all threads for the same process), or "global". If "thread" is selected then rate limiting applies per thread; if "process" is selected then rate limiting applies per process; if "global" is selected then rate limiting applies regardless of which process or thread caused the action. Only valid with the post action and with a rateLimit specified.
false
userStackTracebooleanEnable user stack trace export. Only valid with the post action.
false

TracingPolicy.spec.uprobes[index].selectors[index].matchArgs[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument (in function prototype) to apply fhe filter to.

Format: int32
Minimum: 0
true
operatorenumFilter operation.

Enum: Equal, NotEqual, Prefix, NotPrefix, Postfix, NotPostfix, GreaterThan, LessThan, GT, LT, Mask, SPort, NotSPort, SPortPriv, NotSportPriv, DPort, NotDPort, DPortPriv, NotDPortPriv, SAddr, NotSAddr, DAddr, NotDAddr, Protocol, Family, State, InMap, NotInMap, CapabilitiesGained
true
args[]integerPosition of the operator arguments (in spec file) to apply fhe filter to.
false
values[]stringValue to compare the argument against.
false

TracingPolicy.spec.uprobes[index].selectors[index].matchBinaries[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumFilter operation.

Enum: In, NotIn, Prefix, NotPrefix, Postfix, NotPostfix
true
values[]stringValue to compare the argument against.
true
followChildrenbooleanIn addition to binaries, match children processes of specified binaries.

Default: false
false

TracingPolicy.spec.uprobes[index].selectors[index].matchCapabilities[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringCapabilities to match.
true
isNamespaceCapabilitybooleanIndicates whether these caps are namespace caps.

Default: false
false
typeenumType of capabilities

Enum: Effective, Inheritable, Permitted
Default: Effective
false

TracingPolicy.spec.uprobes[index].selectors[index].matchCapabilityChanges[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringCapabilities to match.
true
isNamespaceCapabilitybooleanIndicates whether these caps are namespace caps.

Default: false
false
typeenumType of capabilities

Enum: Effective, Inheritable, Permitted
Default: Effective
false

TracingPolicy.spec.uprobes[index].selectors[index].matchNamespaceChanges[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringNamespace types (e.g., Mnt, Pid) to match.
true

TracingPolicy.spec.uprobes[index].selectors[index].matchNamespaces[index]

↩ Parent

NameTypeDescriptionRequired
namespaceenumNamespace selector name.

Enum: Uts, Ipc, Mnt, Pid, PidForChildren, Net, Time, TimeForChildren, Cgroup, User
true
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringNamespace IDs (or host_ns for host namespace) of namespaces to match.
true

TracingPolicy.spec.uprobes[index].selectors[index].matchPIDs[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumPID selector operator.

Enum: In, NotIn
true
values[]integerProcess IDs to match.
true
followForksbooleanMatches any descendant processes of the matching PIDs.

Default: false
false
isNamespacePIDbooleanIndicates whether PIDs are namespace PIDs.

Default: false
false

TracingPolicy.spec.uprobes[index].selectors[index].matchReturnActions[index]

↩ Parent

NameTypeDescriptionRequired
actionenumAction to execute. NOTE: actions FollowFD, UnfollowFD, and CopyFD are marked as deprecated and planned to be removed in version 1.5.

Enum: Post, FollowFD, UnfollowFD, Sigkill, CopyFD, Override, GetUrl, DnsLookup, NoPost, Signal, TrackSock, UntrackSock, NotifyEnforcer, CleanupEnforcerNotification
true
argErrorintegererror value for override action

Format: int32
false
argFdintegerAn arg index for the fd for fdInstall action

Format: int32
false
argFqdnstringA FQDN to lookup for the dnsLookup action
false
argNameintegerAn arg index for the filename for fdInstall action

Format: int32
false
argSigintegerA signal number for signal action

Format: int32
false
argSockintegerAn arg index for the sock for trackSock and untrackSock actions

Format: int32
false
argUrlstringA URL for the getUrl action
false
imaHashbooleanEnable collection of file hashes from integrity subsystem. Only valid with the post action.
false
kernelStackTracebooleanEnable kernel stack trace export. Only valid with the post action.
false
rateLimitstringA time period within which repeated messages will not be posted. Can be specified in seconds (default or with 's' suffix), minutes ('m' suffix) or hours ('h' suffix). Only valid with the post action.
false
rateLimitScopestringThe scope of the provided rate limit argument. Can be "thread" (default), "process" (all threads for the same process), or "global". If "thread" is selected then rate limiting applies per thread; if "process" is selected then rate limiting applies per process; if "global" is selected then rate limiting applies regardless of which process or thread caused the action. Only valid with the post action and with a rateLimit specified.
false
userStackTracebooleanEnable user stack trace export. Only valid with the post action.
false

TracingPolicy.spec.uprobes[index].selectors[index].matchReturnArgs[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument (in function prototype) to apply fhe filter to.

Format: int32
Minimum: 0
true
operatorenumFilter operation.

Enum: Equal, NotEqual, Prefix, NotPrefix, Postfix, NotPostfix, GreaterThan, LessThan, GT, LT, Mask, SPort, NotSPort, SPortPriv, NotSportPriv, DPort, NotDPort, DPortPriv, NotDPortPriv, SAddr, NotSAddr, DAddr, NotDAddr, Protocol, Family, State, InMap, NotInMap, CapabilitiesGained
true
args[]integerPosition of the operator arguments (in spec file) to apply fhe filter to.
false
values[]stringValue to compare the argument against.
false

TracingPolicy.spec.usdts[index]

↩ Parent

NameTypeDescriptionRequired
namestringUsdt name
true
pathstringName of the traced binary
true
providerstringUsdt provider name
true
args[]objectA list of function arguments to include in the trace output.
false
messagestringA short message of 256 characters max that will be included in the event output to inform users what is going on.
false
tags[]stringTags to categorize the event, will be include in the event output. Maximum of 16 Tags are supported.
false

TracingPolicy.spec.usdts[index].args[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument.

Format: int32
Minimum: 0
true
typeenumArgument type.

Enum: auto, int, int8, uint8, int16, uint16, uint32, int32, uint64, int64, char_buf, char_iovec, size_t, skb, sock, sockaddr, socket, string, fd, file, filename, path, nop, bpf_attr, perf_event, bpf_map, user_namespace, capability, kiocb, iov_iter, cred, load_info, module, syscall64, kernel_cap_t, cap_inheritable, cap_permitted, cap_effective, linux_binprm, data_loc, net_device, bpf_cmd, dentry
Default: auto
true
labelstringLabel to output in the JSON
false
maxDatabooleanRead maximum possible data (currently 327360). This field is only used for char_buff data. When this value is false (default), the bpf program will fetch at most 4096 bytes. In later kernels (>=5.4) tetragon supports fetching up to 327360 bytes if this flag is turned on

Default: false
false
resolvestringResolve the path to a specific attribute

Default:
false
returnCopybooleanThis field is used only for char_buf and char_iovec types. It indicates that this argument should be read later (when the kretprobe for the symbol is triggered) because it might not be populated when the kprobe is triggered at the entrance of the function. For example, a buffer supplied to read(2) won't have content until kretprobe is triggered.

Default: false
false
sizeArgIndexintegerSpecifies the position of the corresponding size argument for this argument. This field is used only for char_buf and char_iovec types.

Format: int32
Minimum: 0
false

TracingPolicyNamespaced

↩ Parent

NameTypeDescriptionRequired
apiVersionstringcilium.io/v1alpha1true
kindstringTracingPolicyNamespacedtrue
metadataobjectRefer to the Kubernetes API documentation for the fields of the `metadata` field.true
specobjectTracing policy specification.
true

TracingPolicyNamespaced.spec

↩ Parent

Tracing policy specification.

NameTypeDescriptionRequired
containerSelectorobjectContainerSelector selects containers that this policy applies to. A map of container fields will be constructed in the same way as a map of labels. The name of the field represents the label "key", and the value of the field - label "value". Currently, only the "name" field is supported.
false
enforcers[]objectA enforcer spec.
false
kprobes[]objectA list of kprobe specs.
false
lists[]objectA list of list specs.
false
loaderbooleanEnable loader events
false
lsmhooks[]objectA list of uprobe specs.
false
options[]objectA list of overloaded options
false
podSelectorobjectPodSelector selects pods that this policy applies to
false
tracepoints[]objectA list of tracepoint specs.
false
uprobes[]objectA list of uprobe specs.
false
usdts[]objectA list of usdt specs.
false

TracingPolicyNamespaced.spec.containerSelector

↩ Parent

ContainerSelector selects containers that this policy applies to. A map of container fields will be constructed in the same way as a map of labels. The name of the field represents the label “key”, and the value of the field - label “value”. Currently, only the “name” field is supported.

NameTypeDescriptionRequired
matchExpressions[]objectmatchExpressions is a list of label selector requirements. The requirements are ANDed.
false
matchLabelsmap[string]stringmatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
false

TracingPolicyNamespaced.spec.containerSelector.matchExpressions[index]

↩ Parent

A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.

NameTypeDescriptionRequired
keystringkey is the label key that the selector applies to.
true
operatorenumoperator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.

Enum: In, NotIn, Exists, DoesNotExist
true
values[]stringvalues is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
false

TracingPolicyNamespaced.spec.enforcers[index]

↩ Parent

NameTypeDescriptionRequired
calls[]stringCalls where enforcer is executed in
true

TracingPolicyNamespaced.spec.kprobes[index]

↩ Parent

NameTypeDescriptionRequired
callstringName of the function to apply the kprobe spec to.
true
args[]objectA list of function arguments to include in the trace output.
false
ignoreobjectConditions for ignoring this kprobe
false
messagestringA short message of 256 characters max that will be included in the event output to inform users what is going on.
false
returnbooleanIndicates whether to collect return value of the traced function.

Default: false
false
returnArgobjectA return argument to include in the trace output.
false
returnArgActionstringAn action to perform on the return argument. Available actions are: Post;TrackSock;UntrackSock
false
selectors[]objectSelectors to apply before producing trace output. Selectors are ORed and short-circuited.
false
syscallbooleanIndicates whether the traced function is a syscall.

Default: true
false
tags[]stringTags to categorize the event, will be include in the event output. Maximum of 16 Tags are supported.
false

TracingPolicyNamespaced.spec.kprobes[index].args[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument.

Format: int32
Minimum: 0
true
typeenumArgument type.

Enum: auto, int, int8, uint8, int16, uint16, uint32, int32, uint64, int64, char_buf, char_iovec, size_t, skb, sock, sockaddr, socket, string, fd, file, filename, path, nop, bpf_attr, perf_event, bpf_map, user_namespace, capability, kiocb, iov_iter, cred, load_info, module, syscall64, kernel_cap_t, cap_inheritable, cap_permitted, cap_effective, linux_binprm, data_loc, net_device, bpf_cmd, dentry
Default: auto
true
labelstringLabel to output in the JSON
false
maxDatabooleanRead maximum possible data (currently 327360). This field is only used for char_buff data. When this value is false (default), the bpf program will fetch at most 4096 bytes. In later kernels (>=5.4) tetragon supports fetching up to 327360 bytes if this flag is turned on

Default: false
false
resolvestringResolve the path to a specific attribute

Default:
false
returnCopybooleanThis field is used only for char_buf and char_iovec types. It indicates that this argument should be read later (when the kretprobe for the symbol is triggered) because it might not be populated when the kprobe is triggered at the entrance of the function. For example, a buffer supplied to read(2) won't have content until kretprobe is triggered.

Default: false
false
sizeArgIndexintegerSpecifies the position of the corresponding size argument for this argument. This field is used only for char_buf and char_iovec types.

Format: int32
Minimum: 0
false

TracingPolicyNamespaced.spec.kprobes[index].ignore

↩ Parent

Conditions for ignoring this kprobe

NameTypeDescriptionRequired
callNotFoundbooleanIgnores calls that are not present in the system
false

TracingPolicyNamespaced.spec.kprobes[index].returnArg

↩ Parent

A return argument to include in the trace output.

NameTypeDescriptionRequired
indexintegerPosition of the argument.

Format: int32
Minimum: 0
true
typeenumArgument type.

Enum: auto, int, int8, uint8, int16, uint16, uint32, int32, uint64, int64, char_buf, char_iovec, size_t, skb, sock, sockaddr, socket, string, fd, file, filename, path, nop, bpf_attr, perf_event, bpf_map, user_namespace, capability, kiocb, iov_iter, cred, load_info, module, syscall64, kernel_cap_t, cap_inheritable, cap_permitted, cap_effective, linux_binprm, data_loc, net_device, bpf_cmd, dentry
Default: auto
true
labelstringLabel to output in the JSON
false
maxDatabooleanRead maximum possible data (currently 327360). This field is only used for char_buff data. When this value is false (default), the bpf program will fetch at most 4096 bytes. In later kernels (>=5.4) tetragon supports fetching up to 327360 bytes if this flag is turned on

Default: false
false
resolvestringResolve the path to a specific attribute

Default:
false
returnCopybooleanThis field is used only for char_buf and char_iovec types. It indicates that this argument should be read later (when the kretprobe for the symbol is triggered) because it might not be populated when the kprobe is triggered at the entrance of the function. For example, a buffer supplied to read(2) won't have content until kretprobe is triggered.

Default: false
false
sizeArgIndexintegerSpecifies the position of the corresponding size argument for this argument. This field is used only for char_buf and char_iovec types.

Format: int32
Minimum: 0
false

TracingPolicyNamespaced.spec.kprobes[index].selectors[index]

↩ Parent

KProbeSelector selects function calls for kprobe based on PIDs and function arguments. The results of MatchPIDs and MatchArgs are ANDed.

NameTypeDescriptionRequired
matchActions[]objectA list of actions to execute when this selector matches
false
matchArgs[]objectA list of argument filters. MatchArgs are ANDed.
false
matchBinaries[]objectA list of binary exec name filters.
false
matchCapabilities[]objectA list of capabilities and IDs
false
matchCapabilityChanges[]objectIDs for capabilities changes
false
matchNamespaceChanges[]objectIDs for namespace changes
false
matchNamespaces[]objectA list of namespaces and IDs
false
matchPIDs[]objectA list of process ID filters. MatchPIDs are ANDed.
false
matchReturnActions[]objectA list of actions to execute when MatchReturnArgs selector matches
false
matchReturnArgs[]objectA list of argument filters. MatchArgs are ANDed.
false

TracingPolicyNamespaced.spec.kprobes[index].selectors[index].matchActions[index]

↩ Parent

NameTypeDescriptionRequired
actionenumAction to execute. NOTE: actions FollowFD, UnfollowFD, and CopyFD are marked as deprecated and planned to be removed in version 1.5.

Enum: Post, FollowFD, UnfollowFD, Sigkill, CopyFD, Override, GetUrl, DnsLookup, NoPost, Signal, TrackSock, UntrackSock, NotifyEnforcer, CleanupEnforcerNotification
true
argErrorintegererror value for override action

Format: int32
false
argFdintegerAn arg index for the fd for fdInstall action

Format: int32
false
argFqdnstringA FQDN to lookup for the dnsLookup action
false
argNameintegerAn arg index for the filename for fdInstall action

Format: int32
false
argSigintegerA signal number for signal action

Format: int32
false
argSockintegerAn arg index for the sock for trackSock and untrackSock actions

Format: int32
false
argUrlstringA URL for the getUrl action
false
imaHashbooleanEnable collection of file hashes from integrity subsystem. Only valid with the post action.
false
kernelStackTracebooleanEnable kernel stack trace export. Only valid with the post action.
false
rateLimitstringA time period within which repeated messages will not be posted. Can be specified in seconds (default or with 's' suffix), minutes ('m' suffix) or hours ('h' suffix). Only valid with the post action.
false
rateLimitScopestringThe scope of the provided rate limit argument. Can be "thread" (default), "process" (all threads for the same process), or "global". If "thread" is selected then rate limiting applies per thread; if "process" is selected then rate limiting applies per process; if "global" is selected then rate limiting applies regardless of which process or thread caused the action. Only valid with the post action and with a rateLimit specified.
false
userStackTracebooleanEnable user stack trace export. Only valid with the post action.
false

TracingPolicyNamespaced.spec.kprobes[index].selectors[index].matchArgs[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument (in function prototype) to apply fhe filter to.

Format: int32
Minimum: 0
true
operatorenumFilter operation.

Enum: Equal, NotEqual, Prefix, NotPrefix, Postfix, NotPostfix, GreaterThan, LessThan, GT, LT, Mask, SPort, NotSPort, SPortPriv, NotSportPriv, DPort, NotDPort, DPortPriv, NotDPortPriv, SAddr, NotSAddr, DAddr, NotDAddr, Protocol, Family, State, InMap, NotInMap, CapabilitiesGained
true
args[]integerPosition of the operator arguments (in spec file) to apply fhe filter to.
false
values[]stringValue to compare the argument against.
false

TracingPolicyNamespaced.spec.kprobes[index].selectors[index].matchBinaries[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumFilter operation.

Enum: In, NotIn, Prefix, NotPrefix, Postfix, NotPostfix
true
values[]stringValue to compare the argument against.
true
followChildrenbooleanIn addition to binaries, match children processes of specified binaries.

Default: false
false

TracingPolicyNamespaced.spec.kprobes[index].selectors[index].matchCapabilities[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringCapabilities to match.
true
isNamespaceCapabilitybooleanIndicates whether these caps are namespace caps.

Default: false
false
typeenumType of capabilities

Enum: Effective, Inheritable, Permitted
Default: Effective
false

TracingPolicyNamespaced.spec.kprobes[index].selectors[index].matchCapabilityChanges[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringCapabilities to match.
true
isNamespaceCapabilitybooleanIndicates whether these caps are namespace caps.

Default: false
false
typeenumType of capabilities

Enum: Effective, Inheritable, Permitted
Default: Effective
false

TracingPolicyNamespaced.spec.kprobes[index].selectors[index].matchNamespaceChanges[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringNamespace types (e.g., Mnt, Pid) to match.
true

TracingPolicyNamespaced.spec.kprobes[index].selectors[index].matchNamespaces[index]

↩ Parent

NameTypeDescriptionRequired
namespaceenumNamespace selector name.

Enum: Uts, Ipc, Mnt, Pid, PidForChildren, Net, Time, TimeForChildren, Cgroup, User
true
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringNamespace IDs (or host_ns for host namespace) of namespaces to match.
true

TracingPolicyNamespaced.spec.kprobes[index].selectors[index].matchPIDs[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumPID selector operator.

Enum: In, NotIn
true
values[]integerProcess IDs to match.
true
followForksbooleanMatches any descendant processes of the matching PIDs.

Default: false
false
isNamespacePIDbooleanIndicates whether PIDs are namespace PIDs.

Default: false
false

TracingPolicyNamespaced.spec.kprobes[index].selectors[index].matchReturnActions[index]

↩ Parent

NameTypeDescriptionRequired
actionenumAction to execute. NOTE: actions FollowFD, UnfollowFD, and CopyFD are marked as deprecated and planned to be removed in version 1.5.

Enum: Post, FollowFD, UnfollowFD, Sigkill, CopyFD, Override, GetUrl, DnsLookup, NoPost, Signal, TrackSock, UntrackSock, NotifyEnforcer, CleanupEnforcerNotification
true
argErrorintegererror value for override action

Format: int32
false
argFdintegerAn arg index for the fd for fdInstall action

Format: int32
false
argFqdnstringA FQDN to lookup for the dnsLookup action
false
argNameintegerAn arg index for the filename for fdInstall action

Format: int32
false
argSigintegerA signal number for signal action

Format: int32
false
argSockintegerAn arg index for the sock for trackSock and untrackSock actions

Format: int32
false
argUrlstringA URL for the getUrl action
false
imaHashbooleanEnable collection of file hashes from integrity subsystem. Only valid with the post action.
false
kernelStackTracebooleanEnable kernel stack trace export. Only valid with the post action.
false
rateLimitstringA time period within which repeated messages will not be posted. Can be specified in seconds (default or with 's' suffix), minutes ('m' suffix) or hours ('h' suffix). Only valid with the post action.
false
rateLimitScopestringThe scope of the provided rate limit argument. Can be "thread" (default), "process" (all threads for the same process), or "global". If "thread" is selected then rate limiting applies per thread; if "process" is selected then rate limiting applies per process; if "global" is selected then rate limiting applies regardless of which process or thread caused the action. Only valid with the post action and with a rateLimit specified.
false
userStackTracebooleanEnable user stack trace export. Only valid with the post action.
false

TracingPolicyNamespaced.spec.kprobes[index].selectors[index].matchReturnArgs[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument (in function prototype) to apply fhe filter to.

Format: int32
Minimum: 0
true
operatorenumFilter operation.

Enum: Equal, NotEqual, Prefix, NotPrefix, Postfix, NotPostfix, GreaterThan, LessThan, GT, LT, Mask, SPort, NotSPort, SPortPriv, NotSportPriv, DPort, NotDPort, DPortPriv, NotDPortPriv, SAddr, NotSAddr, DAddr, NotDAddr, Protocol, Family, State, InMap, NotInMap, CapabilitiesGained
true
args[]integerPosition of the operator arguments (in spec file) to apply fhe filter to.
false
values[]stringValue to compare the argument against.
false

TracingPolicyNamespaced.spec.lists[index]

↩ Parent

NameTypeDescriptionRequired
namestringName of the list
true
patternstringPattern for 'generated' lists.
false
typeenumIndicates the type of the list values.

Enum: syscalls, generated_syscalls, generated_ftrace
false
validatedbooleanList was validated
false
values[]stringValues of the list
false

TracingPolicyNamespaced.spec.lsmhooks[index]

↩ Parent

NameTypeDescriptionRequired
hookstringName of the function to apply the kprobe spec to.
true
args[]objectA list of function arguments to include in the trace output.
false
messagestringA short message of 256 characters max that will be included in the event output to inform users what is going on.
false
selectors[]objectSelectors to apply before producing trace output. Selectors are ORed.
false
tags[]stringTags to categorize the event, will be include in the event output. Maximum of 16 Tags are supported.
false

TracingPolicyNamespaced.spec.lsmhooks[index].args[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument.

Format: int32
Minimum: 0
true
typeenumArgument type.

Enum: auto, int, int8, uint8, int16, uint16, uint32, int32, uint64, int64, char_buf, char_iovec, size_t, skb, sock, sockaddr, socket, string, fd, file, filename, path, nop, bpf_attr, perf_event, bpf_map, user_namespace, capability, kiocb, iov_iter, cred, load_info, module, syscall64, kernel_cap_t, cap_inheritable, cap_permitted, cap_effective, linux_binprm, data_loc, net_device, bpf_cmd, dentry
Default: auto
true
labelstringLabel to output in the JSON
false
maxDatabooleanRead maximum possible data (currently 327360). This field is only used for char_buff data. When this value is false (default), the bpf program will fetch at most 4096 bytes. In later kernels (>=5.4) tetragon supports fetching up to 327360 bytes if this flag is turned on

Default: false
false
resolvestringResolve the path to a specific attribute

Default:
false
returnCopybooleanThis field is used only for char_buf and char_iovec types. It indicates that this argument should be read later (when the kretprobe for the symbol is triggered) because it might not be populated when the kprobe is triggered at the entrance of the function. For example, a buffer supplied to read(2) won't have content until kretprobe is triggered.

Default: false
false
sizeArgIndexintegerSpecifies the position of the corresponding size argument for this argument. This field is used only for char_buf and char_iovec types.

Format: int32
Minimum: 0
false

TracingPolicyNamespaced.spec.lsmhooks[index].selectors[index]

↩ Parent

KProbeSelector selects function calls for kprobe based on PIDs and function arguments. The results of MatchPIDs and MatchArgs are ANDed.

NameTypeDescriptionRequired
matchActions[]objectA list of actions to execute when this selector matches
false
matchArgs[]objectA list of argument filters. MatchArgs are ANDed.
false
matchBinaries[]objectA list of binary exec name filters.
false
matchCapabilities[]objectA list of capabilities and IDs
false
matchCapabilityChanges[]objectIDs for capabilities changes
false
matchNamespaceChanges[]objectIDs for namespace changes
false
matchNamespaces[]objectA list of namespaces and IDs
false
matchPIDs[]objectA list of process ID filters. MatchPIDs are ANDed.
false
matchReturnActions[]objectA list of actions to execute when MatchReturnArgs selector matches
false
matchReturnArgs[]objectA list of argument filters. MatchArgs are ANDed.
false

TracingPolicyNamespaced.spec.lsmhooks[index].selectors[index].matchActions[index]

↩ Parent

NameTypeDescriptionRequired
actionenumAction to execute. NOTE: actions FollowFD, UnfollowFD, and CopyFD are marked as deprecated and planned to be removed in version 1.5.

Enum: Post, FollowFD, UnfollowFD, Sigkill, CopyFD, Override, GetUrl, DnsLookup, NoPost, Signal, TrackSock, UntrackSock, NotifyEnforcer, CleanupEnforcerNotification
true
argErrorintegererror value for override action

Format: int32
false
argFdintegerAn arg index for the fd for fdInstall action

Format: int32
false
argFqdnstringA FQDN to lookup for the dnsLookup action
false
argNameintegerAn arg index for the filename for fdInstall action

Format: int32
false
argSigintegerA signal number for signal action

Format: int32
false
argSockintegerAn arg index for the sock for trackSock and untrackSock actions

Format: int32
false
argUrlstringA URL for the getUrl action
false
imaHashbooleanEnable collection of file hashes from integrity subsystem. Only valid with the post action.
false
kernelStackTracebooleanEnable kernel stack trace export. Only valid with the post action.
false
rateLimitstringA time period within which repeated messages will not be posted. Can be specified in seconds (default or with 's' suffix), minutes ('m' suffix) or hours ('h' suffix). Only valid with the post action.
false
rateLimitScopestringThe scope of the provided rate limit argument. Can be "thread" (default), "process" (all threads for the same process), or "global". If "thread" is selected then rate limiting applies per thread; if "process" is selected then rate limiting applies per process; if "global" is selected then rate limiting applies regardless of which process or thread caused the action. Only valid with the post action and with a rateLimit specified.
false
userStackTracebooleanEnable user stack trace export. Only valid with the post action.
false

TracingPolicyNamespaced.spec.lsmhooks[index].selectors[index].matchArgs[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument (in function prototype) to apply fhe filter to.

Format: int32
Minimum: 0
true
operatorenumFilter operation.

Enum: Equal, NotEqual, Prefix, NotPrefix, Postfix, NotPostfix, GreaterThan, LessThan, GT, LT, Mask, SPort, NotSPort, SPortPriv, NotSportPriv, DPort, NotDPort, DPortPriv, NotDPortPriv, SAddr, NotSAddr, DAddr, NotDAddr, Protocol, Family, State, InMap, NotInMap, CapabilitiesGained
true
args[]integerPosition of the operator arguments (in spec file) to apply fhe filter to.
false
values[]stringValue to compare the argument against.
false

TracingPolicyNamespaced.spec.lsmhooks[index].selectors[index].matchBinaries[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumFilter operation.

Enum: In, NotIn, Prefix, NotPrefix, Postfix, NotPostfix
true
values[]stringValue to compare the argument against.
true
followChildrenbooleanIn addition to binaries, match children processes of specified binaries.

Default: false
false

TracingPolicyNamespaced.spec.lsmhooks[index].selectors[index].matchCapabilities[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringCapabilities to match.
true
isNamespaceCapabilitybooleanIndicates whether these caps are namespace caps.

Default: false
false
typeenumType of capabilities

Enum: Effective, Inheritable, Permitted
Default: Effective
false

TracingPolicyNamespaced.spec.lsmhooks[index].selectors[index].matchCapabilityChanges[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringCapabilities to match.
true
isNamespaceCapabilitybooleanIndicates whether these caps are namespace caps.

Default: false
false
typeenumType of capabilities

Enum: Effective, Inheritable, Permitted
Default: Effective
false

TracingPolicyNamespaced.spec.lsmhooks[index].selectors[index].matchNamespaceChanges[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringNamespace types (e.g., Mnt, Pid) to match.
true

TracingPolicyNamespaced.spec.lsmhooks[index].selectors[index].matchNamespaces[index]

↩ Parent

NameTypeDescriptionRequired
namespaceenumNamespace selector name.

Enum: Uts, Ipc, Mnt, Pid, PidForChildren, Net, Time, TimeForChildren, Cgroup, User
true
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringNamespace IDs (or host_ns for host namespace) of namespaces to match.
true

TracingPolicyNamespaced.spec.lsmhooks[index].selectors[index].matchPIDs[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumPID selector operator.

Enum: In, NotIn
true
values[]integerProcess IDs to match.
true
followForksbooleanMatches any descendant processes of the matching PIDs.

Default: false
false
isNamespacePIDbooleanIndicates whether PIDs are namespace PIDs.

Default: false
false

TracingPolicyNamespaced.spec.lsmhooks[index].selectors[index].matchReturnActions[index]

↩ Parent

NameTypeDescriptionRequired
actionenumAction to execute. NOTE: actions FollowFD, UnfollowFD, and CopyFD are marked as deprecated and planned to be removed in version 1.5.

Enum: Post, FollowFD, UnfollowFD, Sigkill, CopyFD, Override, GetUrl, DnsLookup, NoPost, Signal, TrackSock, UntrackSock, NotifyEnforcer, CleanupEnforcerNotification
true
argErrorintegererror value for override action

Format: int32
false
argFdintegerAn arg index for the fd for fdInstall action

Format: int32
false
argFqdnstringA FQDN to lookup for the dnsLookup action
false
argNameintegerAn arg index for the filename for fdInstall action

Format: int32
false
argSigintegerA signal number for signal action

Format: int32
false
argSockintegerAn arg index for the sock for trackSock and untrackSock actions

Format: int32
false
argUrlstringA URL for the getUrl action
false
imaHashbooleanEnable collection of file hashes from integrity subsystem. Only valid with the post action.
false
kernelStackTracebooleanEnable kernel stack trace export. Only valid with the post action.
false
rateLimitstringA time period within which repeated messages will not be posted. Can be specified in seconds (default or with 's' suffix), minutes ('m' suffix) or hours ('h' suffix). Only valid with the post action.
false
rateLimitScopestringThe scope of the provided rate limit argument. Can be "thread" (default), "process" (all threads for the same process), or "global". If "thread" is selected then rate limiting applies per thread; if "process" is selected then rate limiting applies per process; if "global" is selected then rate limiting applies regardless of which process or thread caused the action. Only valid with the post action and with a rateLimit specified.
false
userStackTracebooleanEnable user stack trace export. Only valid with the post action.
false

TracingPolicyNamespaced.spec.lsmhooks[index].selectors[index].matchReturnArgs[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument (in function prototype) to apply fhe filter to.

Format: int32
Minimum: 0
true
operatorenumFilter operation.

Enum: Equal, NotEqual, Prefix, NotPrefix, Postfix, NotPostfix, GreaterThan, LessThan, GT, LT, Mask, SPort, NotSPort, SPortPriv, NotSportPriv, DPort, NotDPort, DPortPriv, NotDPortPriv, SAddr, NotSAddr, DAddr, NotDAddr, Protocol, Family, State, InMap, NotInMap, CapabilitiesGained
true
args[]integerPosition of the operator arguments (in spec file) to apply fhe filter to.
false
values[]stringValue to compare the argument against.
false

TracingPolicyNamespaced.spec.options[index]

↩ Parent

NameTypeDescriptionRequired
namestringName of the option
true
valuestringValue of the option
false

TracingPolicyNamespaced.spec.podSelector

↩ Parent

PodSelector selects pods that this policy applies to

NameTypeDescriptionRequired
matchExpressions[]objectmatchExpressions is a list of label selector requirements. The requirements are ANDed.
false
matchLabelsmap[string]stringmatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
false

TracingPolicyNamespaced.spec.podSelector.matchExpressions[index]

↩ Parent

A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.

NameTypeDescriptionRequired
keystringkey is the label key that the selector applies to.
true
operatorenumoperator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.

Enum: In, NotIn, Exists, DoesNotExist
true
values[]stringvalues is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
false

TracingPolicyNamespaced.spec.tracepoints[index]

↩ Parent

NameTypeDescriptionRequired
eventstringTracepoint event
true
subsystemstringTracepoint subsystem
true
args[]objectA list of function arguments to include in the trace output.
false
messagestringA short message of 256 characters max that will be included in the event output to inform users what is going on.
false
rawbooleanEnable raw tracepoint arguments
false
selectors[]objectSelectors to apply before producing trace output. Selectors are ORed.
false
tags[]stringTags to categorize the event, will be include in the event output. Maximum of 16 Tags are supported.
false

TracingPolicyNamespaced.spec.tracepoints[index].args[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument.

Format: int32
Minimum: 0
true
typeenumArgument type.

Enum: auto, int, int8, uint8, int16, uint16, uint32, int32, uint64, int64, char_buf, char_iovec, size_t, skb, sock, sockaddr, socket, string, fd, file, filename, path, nop, bpf_attr, perf_event, bpf_map, user_namespace, capability, kiocb, iov_iter, cred, load_info, module, syscall64, kernel_cap_t, cap_inheritable, cap_permitted, cap_effective, linux_binprm, data_loc, net_device, bpf_cmd, dentry
Default: auto
true
labelstringLabel to output in the JSON
false
maxDatabooleanRead maximum possible data (currently 327360). This field is only used for char_buff data. When this value is false (default), the bpf program will fetch at most 4096 bytes. In later kernels (>=5.4) tetragon supports fetching up to 327360 bytes if this flag is turned on

Default: false
false
resolvestringResolve the path to a specific attribute

Default:
false
returnCopybooleanThis field is used only for char_buf and char_iovec types. It indicates that this argument should be read later (when the kretprobe for the symbol is triggered) because it might not be populated when the kprobe is triggered at the entrance of the function. For example, a buffer supplied to read(2) won't have content until kretprobe is triggered.

Default: false
false
sizeArgIndexintegerSpecifies the position of the corresponding size argument for this argument. This field is used only for char_buf and char_iovec types.

Format: int32
Minimum: 0
false

TracingPolicyNamespaced.spec.tracepoints[index].selectors[index]

↩ Parent

KProbeSelector selects function calls for kprobe based on PIDs and function arguments. The results of MatchPIDs and MatchArgs are ANDed.

NameTypeDescriptionRequired
matchActions[]objectA list of actions to execute when this selector matches
false
matchArgs[]objectA list of argument filters. MatchArgs are ANDed.
false
matchBinaries[]objectA list of binary exec name filters.
false
matchCapabilities[]objectA list of capabilities and IDs
false
matchCapabilityChanges[]objectIDs for capabilities changes
false
matchNamespaceChanges[]objectIDs for namespace changes
false
matchNamespaces[]objectA list of namespaces and IDs
false
matchPIDs[]objectA list of process ID filters. MatchPIDs are ANDed.
false
matchReturnActions[]objectA list of actions to execute when MatchReturnArgs selector matches
false
matchReturnArgs[]objectA list of argument filters. MatchArgs are ANDed.
false

TracingPolicyNamespaced.spec.tracepoints[index].selectors[index].matchActions[index]

↩ Parent

NameTypeDescriptionRequired
actionenumAction to execute. NOTE: actions FollowFD, UnfollowFD, and CopyFD are marked as deprecated and planned to be removed in version 1.5.

Enum: Post, FollowFD, UnfollowFD, Sigkill, CopyFD, Override, GetUrl, DnsLookup, NoPost, Signal, TrackSock, UntrackSock, NotifyEnforcer, CleanupEnforcerNotification
true
argErrorintegererror value for override action

Format: int32
false
argFdintegerAn arg index for the fd for fdInstall action

Format: int32
false
argFqdnstringA FQDN to lookup for the dnsLookup action
false
argNameintegerAn arg index for the filename for fdInstall action

Format: int32
false
argSigintegerA signal number for signal action

Format: int32
false
argSockintegerAn arg index for the sock for trackSock and untrackSock actions

Format: int32
false
argUrlstringA URL for the getUrl action
false
imaHashbooleanEnable collection of file hashes from integrity subsystem. Only valid with the post action.
false
kernelStackTracebooleanEnable kernel stack trace export. Only valid with the post action.
false
rateLimitstringA time period within which repeated messages will not be posted. Can be specified in seconds (default or with 's' suffix), minutes ('m' suffix) or hours ('h' suffix). Only valid with the post action.
false
rateLimitScopestringThe scope of the provided rate limit argument. Can be "thread" (default), "process" (all threads for the same process), or "global". If "thread" is selected then rate limiting applies per thread; if "process" is selected then rate limiting applies per process; if "global" is selected then rate limiting applies regardless of which process or thread caused the action. Only valid with the post action and with a rateLimit specified.
false
userStackTracebooleanEnable user stack trace export. Only valid with the post action.
false

TracingPolicyNamespaced.spec.tracepoints[index].selectors[index].matchArgs[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument (in function prototype) to apply fhe filter to.

Format: int32
Minimum: 0
true
operatorenumFilter operation.

Enum: Equal, NotEqual, Prefix, NotPrefix, Postfix, NotPostfix, GreaterThan, LessThan, GT, LT, Mask, SPort, NotSPort, SPortPriv, NotSportPriv, DPort, NotDPort, DPortPriv, NotDPortPriv, SAddr, NotSAddr, DAddr, NotDAddr, Protocol, Family, State, InMap, NotInMap, CapabilitiesGained
true
args[]integerPosition of the operator arguments (in spec file) to apply fhe filter to.
false
values[]stringValue to compare the argument against.
false

TracingPolicyNamespaced.spec.tracepoints[index].selectors[index].matchBinaries[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumFilter operation.

Enum: In, NotIn, Prefix, NotPrefix, Postfix, NotPostfix
true
values[]stringValue to compare the argument against.
true
followChildrenbooleanIn addition to binaries, match children processes of specified binaries.

Default: false
false

TracingPolicyNamespaced.spec.tracepoints[index].selectors[index].matchCapabilities[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringCapabilities to match.
true
isNamespaceCapabilitybooleanIndicates whether these caps are namespace caps.

Default: false
false
typeenumType of capabilities

Enum: Effective, Inheritable, Permitted
Default: Effective
false

TracingPolicyNamespaced.spec.tracepoints[index].selectors[index].matchCapabilityChanges[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringCapabilities to match.
true
isNamespaceCapabilitybooleanIndicates whether these caps are namespace caps.

Default: false
false
typeenumType of capabilities

Enum: Effective, Inheritable, Permitted
Default: Effective
false

TracingPolicyNamespaced.spec.tracepoints[index].selectors[index].matchNamespaceChanges[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringNamespace types (e.g., Mnt, Pid) to match.
true

TracingPolicyNamespaced.spec.tracepoints[index].selectors[index].matchNamespaces[index]

↩ Parent

NameTypeDescriptionRequired
namespaceenumNamespace selector name.

Enum: Uts, Ipc, Mnt, Pid, PidForChildren, Net, Time, TimeForChildren, Cgroup, User
true
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringNamespace IDs (or host_ns for host namespace) of namespaces to match.
true

TracingPolicyNamespaced.spec.tracepoints[index].selectors[index].matchPIDs[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumPID selector operator.

Enum: In, NotIn
true
values[]integerProcess IDs to match.
true
followForksbooleanMatches any descendant processes of the matching PIDs.

Default: false
false
isNamespacePIDbooleanIndicates whether PIDs are namespace PIDs.

Default: false
false

TracingPolicyNamespaced.spec.tracepoints[index].selectors[index].matchReturnActions[index]

↩ Parent

NameTypeDescriptionRequired
actionenumAction to execute. NOTE: actions FollowFD, UnfollowFD, and CopyFD are marked as deprecated and planned to be removed in version 1.5.

Enum: Post, FollowFD, UnfollowFD, Sigkill, CopyFD, Override, GetUrl, DnsLookup, NoPost, Signal, TrackSock, UntrackSock, NotifyEnforcer, CleanupEnforcerNotification
true
argErrorintegererror value for override action

Format: int32
false
argFdintegerAn arg index for the fd for fdInstall action

Format: int32
false
argFqdnstringA FQDN to lookup for the dnsLookup action
false
argNameintegerAn arg index for the filename for fdInstall action

Format: int32
false
argSigintegerA signal number for signal action

Format: int32
false
argSockintegerAn arg index for the sock for trackSock and untrackSock actions

Format: int32
false
argUrlstringA URL for the getUrl action
false
imaHashbooleanEnable collection of file hashes from integrity subsystem. Only valid with the post action.
false
kernelStackTracebooleanEnable kernel stack trace export. Only valid with the post action.
false
rateLimitstringA time period within which repeated messages will not be posted. Can be specified in seconds (default or with 's' suffix), minutes ('m' suffix) or hours ('h' suffix). Only valid with the post action.
false
rateLimitScopestringThe scope of the provided rate limit argument. Can be "thread" (default), "process" (all threads for the same process), or "global". If "thread" is selected then rate limiting applies per thread; if "process" is selected then rate limiting applies per process; if "global" is selected then rate limiting applies regardless of which process or thread caused the action. Only valid with the post action and with a rateLimit specified.
false
userStackTracebooleanEnable user stack trace export. Only valid with the post action.
false

TracingPolicyNamespaced.spec.tracepoints[index].selectors[index].matchReturnArgs[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument (in function prototype) to apply fhe filter to.

Format: int32
Minimum: 0
true
operatorenumFilter operation.

Enum: Equal, NotEqual, Prefix, NotPrefix, Postfix, NotPostfix, GreaterThan, LessThan, GT, LT, Mask, SPort, NotSPort, SPortPriv, NotSportPriv, DPort, NotDPort, DPortPriv, NotDPortPriv, SAddr, NotSAddr, DAddr, NotDAddr, Protocol, Family, State, InMap, NotInMap, CapabilitiesGained
true
args[]integerPosition of the operator arguments (in spec file) to apply fhe filter to.
false
values[]stringValue to compare the argument against.
false

TracingPolicyNamespaced.spec.uprobes[index]

↩ Parent

NameTypeDescriptionRequired
pathstringName of the traced binary
true
args[]objectA list of function arguments to include in the trace output.
false
messagestringA short message of 256 characters max that will be included in the event output to inform users what is going on.
false
offsets[]integerList of the traced offsets
false
refCtrOffsets[]integerList of the traced ref_ctr_offsets
false
selectors[]objectSelectors to apply before producing trace output. Selectors are ORed.
false
symbols[]stringList of the traced symbols
false
tags[]stringTags to categorize the event, will be include in the event output. Maximum of 16 Tags are supported.
false

TracingPolicyNamespaced.spec.uprobes[index].args[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument.

Format: int32
Minimum: 0
true
typeenumArgument type.

Enum: auto, int, int8, uint8, int16, uint16, uint32, int32, uint64, int64, char_buf, char_iovec, size_t, skb, sock, sockaddr, socket, string, fd, file, filename, path, nop, bpf_attr, perf_event, bpf_map, user_namespace, capability, kiocb, iov_iter, cred, load_info, module, syscall64, kernel_cap_t, cap_inheritable, cap_permitted, cap_effective, linux_binprm, data_loc, net_device, bpf_cmd, dentry
Default: auto
true
labelstringLabel to output in the JSON
false
maxDatabooleanRead maximum possible data (currently 327360). This field is only used for char_buff data. When this value is false (default), the bpf program will fetch at most 4096 bytes. In later kernels (>=5.4) tetragon supports fetching up to 327360 bytes if this flag is turned on

Default: false
false
resolvestringResolve the path to a specific attribute

Default:
false
returnCopybooleanThis field is used only for char_buf and char_iovec types. It indicates that this argument should be read later (when the kretprobe for the symbol is triggered) because it might not be populated when the kprobe is triggered at the entrance of the function. For example, a buffer supplied to read(2) won't have content until kretprobe is triggered.

Default: false
false
sizeArgIndexintegerSpecifies the position of the corresponding size argument for this argument. This field is used only for char_buf and char_iovec types.

Format: int32
Minimum: 0
false

TracingPolicyNamespaced.spec.uprobes[index].selectors[index]

↩ Parent

KProbeSelector selects function calls for kprobe based on PIDs and function arguments. The results of MatchPIDs and MatchArgs are ANDed.

NameTypeDescriptionRequired
matchActions[]objectA list of actions to execute when this selector matches
false
matchArgs[]objectA list of argument filters. MatchArgs are ANDed.
false
matchBinaries[]objectA list of binary exec name filters.
false
matchCapabilities[]objectA list of capabilities and IDs
false
matchCapabilityChanges[]objectIDs for capabilities changes
false
matchNamespaceChanges[]objectIDs for namespace changes
false
matchNamespaces[]objectA list of namespaces and IDs
false
matchPIDs[]objectA list of process ID filters. MatchPIDs are ANDed.
false
matchReturnActions[]objectA list of actions to execute when MatchReturnArgs selector matches
false
matchReturnArgs[]objectA list of argument filters. MatchArgs are ANDed.
false

TracingPolicyNamespaced.spec.uprobes[index].selectors[index].matchActions[index]

↩ Parent

NameTypeDescriptionRequired
actionenumAction to execute. NOTE: actions FollowFD, UnfollowFD, and CopyFD are marked as deprecated and planned to be removed in version 1.5.

Enum: Post, FollowFD, UnfollowFD, Sigkill, CopyFD, Override, GetUrl, DnsLookup, NoPost, Signal, TrackSock, UntrackSock, NotifyEnforcer, CleanupEnforcerNotification
true
argErrorintegererror value for override action

Format: int32
false
argFdintegerAn arg index for the fd for fdInstall action

Format: int32
false
argFqdnstringA FQDN to lookup for the dnsLookup action
false
argNameintegerAn arg index for the filename for fdInstall action

Format: int32
false
argSigintegerA signal number for signal action

Format: int32
false
argSockintegerAn arg index for the sock for trackSock and untrackSock actions

Format: int32
false
argUrlstringA URL for the getUrl action
false
imaHashbooleanEnable collection of file hashes from integrity subsystem. Only valid with the post action.
false
kernelStackTracebooleanEnable kernel stack trace export. Only valid with the post action.
false
rateLimitstringA time period within which repeated messages will not be posted. Can be specified in seconds (default or with 's' suffix), minutes ('m' suffix) or hours ('h' suffix). Only valid with the post action.
false
rateLimitScopestringThe scope of the provided rate limit argument. Can be "thread" (default), "process" (all threads for the same process), or "global". If "thread" is selected then rate limiting applies per thread; if "process" is selected then rate limiting applies per process; if "global" is selected then rate limiting applies regardless of which process or thread caused the action. Only valid with the post action and with a rateLimit specified.
false
userStackTracebooleanEnable user stack trace export. Only valid with the post action.
false

TracingPolicyNamespaced.spec.uprobes[index].selectors[index].matchArgs[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument (in function prototype) to apply fhe filter to.

Format: int32
Minimum: 0
true
operatorenumFilter operation.

Enum: Equal, NotEqual, Prefix, NotPrefix, Postfix, NotPostfix, GreaterThan, LessThan, GT, LT, Mask, SPort, NotSPort, SPortPriv, NotSportPriv, DPort, NotDPort, DPortPriv, NotDPortPriv, SAddr, NotSAddr, DAddr, NotDAddr, Protocol, Family, State, InMap, NotInMap, CapabilitiesGained
true
args[]integerPosition of the operator arguments (in spec file) to apply fhe filter to.
false
values[]stringValue to compare the argument against.
false

TracingPolicyNamespaced.spec.uprobes[index].selectors[index].matchBinaries[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumFilter operation.

Enum: In, NotIn, Prefix, NotPrefix, Postfix, NotPostfix
true
values[]stringValue to compare the argument against.
true
followChildrenbooleanIn addition to binaries, match children processes of specified binaries.

Default: false
false

TracingPolicyNamespaced.spec.uprobes[index].selectors[index].matchCapabilities[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringCapabilities to match.
true
isNamespaceCapabilitybooleanIndicates whether these caps are namespace caps.

Default: false
false
typeenumType of capabilities

Enum: Effective, Inheritable, Permitted
Default: Effective
false

TracingPolicyNamespaced.spec.uprobes[index].selectors[index].matchCapabilityChanges[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringCapabilities to match.
true
isNamespaceCapabilitybooleanIndicates whether these caps are namespace caps.

Default: false
false
typeenumType of capabilities

Enum: Effective, Inheritable, Permitted
Default: Effective
false

TracingPolicyNamespaced.spec.uprobes[index].selectors[index].matchNamespaceChanges[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringNamespace types (e.g., Mnt, Pid) to match.
true

TracingPolicyNamespaced.spec.uprobes[index].selectors[index].matchNamespaces[index]

↩ Parent

NameTypeDescriptionRequired
namespaceenumNamespace selector name.

Enum: Uts, Ipc, Mnt, Pid, PidForChildren, Net, Time, TimeForChildren, Cgroup, User
true
operatorenumNamespace selector operator.

Enum: In, NotIn
true
values[]stringNamespace IDs (or host_ns for host namespace) of namespaces to match.
true

TracingPolicyNamespaced.spec.uprobes[index].selectors[index].matchPIDs[index]

↩ Parent

NameTypeDescriptionRequired
operatorenumPID selector operator.

Enum: In, NotIn
true
values[]integerProcess IDs to match.
true
followForksbooleanMatches any descendant processes of the matching PIDs.

Default: false
false
isNamespacePIDbooleanIndicates whether PIDs are namespace PIDs.

Default: false
false

TracingPolicyNamespaced.spec.uprobes[index].selectors[index].matchReturnActions[index]

↩ Parent

NameTypeDescriptionRequired
actionenumAction to execute. NOTE: actions FollowFD, UnfollowFD, and CopyFD are marked as deprecated and planned to be removed in version 1.5.

Enum: Post, FollowFD, UnfollowFD, Sigkill, CopyFD, Override, GetUrl, DnsLookup, NoPost, Signal, TrackSock, UntrackSock, NotifyEnforcer, CleanupEnforcerNotification
true
argErrorintegererror value for override action

Format: int32
false
argFdintegerAn arg index for the fd for fdInstall action

Format: int32
false
argFqdnstringA FQDN to lookup for the dnsLookup action
false
argNameintegerAn arg index for the filename for fdInstall action

Format: int32
false
argSigintegerA signal number for signal action

Format: int32
false
argSockintegerAn arg index for the sock for trackSock and untrackSock actions

Format: int32
false
argUrlstringA URL for the getUrl action
false
imaHashbooleanEnable collection of file hashes from integrity subsystem. Only valid with the post action.
false
kernelStackTracebooleanEnable kernel stack trace export. Only valid with the post action.
false
rateLimitstringA time period within which repeated messages will not be posted. Can be specified in seconds (default or with 's' suffix), minutes ('m' suffix) or hours ('h' suffix). Only valid with the post action.
false
rateLimitScopestringThe scope of the provided rate limit argument. Can be "thread" (default), "process" (all threads for the same process), or "global". If "thread" is selected then rate limiting applies per thread; if "process" is selected then rate limiting applies per process; if "global" is selected then rate limiting applies regardless of which process or thread caused the action. Only valid with the post action and with a rateLimit specified.
false
userStackTracebooleanEnable user stack trace export. Only valid with the post action.
false

TracingPolicyNamespaced.spec.uprobes[index].selectors[index].matchReturnArgs[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument (in function prototype) to apply fhe filter to.

Format: int32
Minimum: 0
true
operatorenumFilter operation.

Enum: Equal, NotEqual, Prefix, NotPrefix, Postfix, NotPostfix, GreaterThan, LessThan, GT, LT, Mask, SPort, NotSPort, SPortPriv, NotSportPriv, DPort, NotDPort, DPortPriv, NotDPortPriv, SAddr, NotSAddr, DAddr, NotDAddr, Protocol, Family, State, InMap, NotInMap, CapabilitiesGained
true
args[]integerPosition of the operator arguments (in spec file) to apply fhe filter to.
false
values[]stringValue to compare the argument against.
false

TracingPolicyNamespaced.spec.usdts[index]

↩ Parent

NameTypeDescriptionRequired
namestringUsdt name
true
pathstringName of the traced binary
true
providerstringUsdt provider name
true
args[]objectA list of function arguments to include in the trace output.
false
messagestringA short message of 256 characters max that will be included in the event output to inform users what is going on.
false
tags[]stringTags to categorize the event, will be include in the event output. Maximum of 16 Tags are supported.
false

TracingPolicyNamespaced.spec.usdts[index].args[index]

↩ Parent

NameTypeDescriptionRequired
indexintegerPosition of the argument.

Format: int32
Minimum: 0
true
typeenumArgument type.

Enum: auto, int, int8, uint8, int16, uint16, uint32, int32, uint64, int64, char_buf, char_iovec, size_t, skb, sock, sockaddr, socket, string, fd, file, filename, path, nop, bpf_attr, perf_event, bpf_map, user_namespace, capability, kiocb, iov_iter, cred, load_info, module, syscall64, kernel_cap_t, cap_inheritable, cap_permitted, cap_effective, linux_binprm, data_loc, net_device, bpf_cmd, dentry
Default: auto
true
labelstringLabel to output in the JSON
false
maxDatabooleanRead maximum possible data (currently 327360). This field is only used for char_buff data. When this value is false (default), the bpf program will fetch at most 4096 bytes. In later kernels (>=5.4) tetragon supports fetching up to 327360 bytes if this flag is turned on

Default: false
false
resolvestringResolve the path to a specific attribute

Default:
false
returnCopybooleanThis field is used only for char_buf and char_iovec types. It indicates that this argument should be read later (when the kretprobe for the symbol is triggered) because it might not be populated when the kprobe is triggered at the entrance of the function. For example, a buffer supplied to read(2) won't have content until kretprobe is triggered.

Default: false
false
sizeArgIndexintegerSpecifies the position of the corresponding size argument for this argument. This field is used only for char_buf and char_iovec types.

Format: int32
Minimum: 0
false
Last modified August 28, 2025: adds tracing policy reference docs (f97ef4cc2)