Documentation
¶
Overview ¶
SPDX-License-Identifier: Apache-2.0 Copyright Authors of Tetragon
Index ¶
Constants ¶
View Source
const ( // DOCKER_ID_LENGTH to match BPF side buffer size where we read the // cgroup of the task DOCKER_ID_LENGTH = 128 MSG_SIZEOF_MAXARG = 100 MSG_SIZEOF_EXECVE = 32 MSG_SIZEOF_CWD = 256 MSG_SIZEOF_ARGS = 1024 MSG_SIZEOF_BUFFER = MSG_SIZEOF_ARGS + MSG_SIZEOF_CWD + MSG_SIZEOF_EXECVE + MSG_SIZEOF_EXECVE + MSG_SIZEOF_MAXARG // MsgUnixSize of msg MsgUnixSize uint32 = 640 )
View Source
const (
// UnresolvedMountPoints = 0x1 // (deprecated)
UnresolvedPathComponents = 0x2
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MsgCapabilities ¶
type MsgCloneEvent ¶
type MsgCommon ¶
type MsgCommon struct {
Op uint8
// Flags is used to:
// - distinguish between an entry and a return kprobe event
Flags uint8
Pad_v2 [2]uint8
Size uint32
Ktime uint64
}
API between Kernel BPF and Userspace tetragon Golang agent
type MsgExecveEvent ¶
type MsgExecveEvent struct {
Common MsgCommon
Kube MsgK8s
Parent MsgExecveKey
ParentFlags uint64
Capabilities MsgCapabilities
Namespaces MsgNamespaces
}
type MsgExecveEventUnix ¶
type MsgExecveEventUnix struct {
Common MsgCommon
Kube MsgK8sUnix
Parent MsgExecveKey
ParentFlags uint64
Capabilities MsgCapabilities
Namespaces MsgNamespaces
Process MsgProcess
}
type MsgExecveKey ¶
type MsgExitEvent ¶
type MsgExitEvent struct {
Common MsgCommon `align:"common"`
ProcessKey MsgExecveKey `align:"current"`
Info MsgExitInfo `align:"info"`
}
type MsgExitInfo ¶
type MsgK8s ¶
type MsgK8s struct {
NetNS uint32
Cid uint32
Cgrpid uint64
Docker [DOCKER_ID_LENGTH]byte
}
type MsgNamespaces ¶
Click to show internal directories.
Click to hide internal directories.