Documentation ¶
Overview ¶
Invoked tracker-ebpf events from user mode
This utility can be useful to generate information needed by signatures that is not provided by normal events in the kernel.
Because the events in the kernel are invoked by other programs behavior, we cannot anticipate which events will be invoked and as a result what information will be extracted.
This is critical because tracker-rules is independent, and doesn't have to run on the same machine as tracker-ebpf. This means that tracker-rules might lack basic information of the operating machine needed for some signatures.
By creating user mode events this information could be intentionally collected and passed to tracker-ebpf afterwards.
Index ¶
- Constants
- Variables
- func ExistingContainersEvents(cts *containers.Containers, enrichDisabled bool) []trace.Event
- func FtraceHookEvent(eventsCounter counter.Counter, out chan *trace.Event, baseEvent *trace.Event, ...)
- func GetArg(event *trace.Event, argName string) *trace.Argument
- func GetFtraceBaseEvent() *trace.Event
- func InitNamespacesEvent() trace.Event
- func ParseArgs(event *trace.Event) error
- func ParseArgsFDs(event *trace.Event, origTimestamp uint64, fdArgPathMap *bpf.BPFMap) error
- func SetArgValue(event *trace.Event, argName string, value any) error
- type ByID
- type Capabilities
- type CustomFunctionArgument
- type Definition
- func (d Definition) GetDependencies() Dependencies
- func (d Definition) GetDescription() string
- func (d Definition) GetDocPath() string
- func (d Definition) GetID() ID
- func (d Definition) GetID32Bit() ID
- func (d Definition) GetName() string
- func (d Definition) GetParams() []trace.ArgMeta
- func (d Definition) GetProperties() map[string]interface{}
- func (d Definition) GetSets() []string
- func (d Definition) GetVersion() Version
- func (d Definition) IsInternal() bool
- func (d Definition) IsNetwork() bool
- func (d Definition) IsSignature() bool
- func (d Definition) IsSyscall() bool
- type DefinitionGroup
- func (d *DefinitionGroup) Add(givenId ID, givenDef Definition) error
- func (d *DefinitionGroup) AddBatch(givenDefs map[ID]Definition) error
- func (d *DefinitionGroup) GetDefinitionByID(givenDef ID) Definition
- func (d *DefinitionGroup) GetDefinitionIDByName(givenName string) (ID, bool)
- func (d *DefinitionGroup) GetDefinitions() []Definition
- func (d *DefinitionGroup) GetTailCalls(state map[ID]EventState) []TailCall
- func (d *DefinitionGroup) IDs32ToIDs() map[ID]ID
- func (d *DefinitionGroup) IsDefined(givenDef ID) bool
- func (d *DefinitionGroup) Length() int
- func (d *DefinitionGroup) NamesToIDs() map[string]ID
- type Dependencies
- type EventState
- type ID
- type KSymbol
- type KernelRestrictions
- type Probe
- type TailCall
- type Version
Constants ¶
const ( TailVfsWrite uint32 = iota // Index of a function to be used in a bpf tailcall. TailVfsWritev // Matches defined values in ebpf code for prog_array map. TailSendBin TailSendBinTP TailKernelWrite TailSchedProcessExecEventSubmit TailVfsRead TailVfsReadv TailProcessExecuteFailed1 TailProcessExecuteFailed2 TailHiddenKernelModuleProc TailHiddenKernelModuleKset TailHiddenKernelModuleModTree TailHiddenKernelModuleNewModOnly MaxTail )
const InitProcNsDir = "/proc/1/ns"
const SyscallNotImplemented = "NOT_IMPLEMENTED"
const SyscallPrefix = "__x64_sys_"
Variables ¶
var CoreEvents = map[ID]Definition{}/* 573 elements not displayed */
var (
FtraceWakeupChan = make(chan struct{})
)
var SyscallSymbolNames = map[ID][]KernelRestrictions{}/* 452 elements not displayed */
SyscallSymbolNames mapping of syscall id to syscall definition name by kernel version. Since syscalls can be removed, changed or added - to run on every kernel out there, we need to address the changes over the kernel versions.
Functions ¶
func ExistingContainersEvents ¶
func ExistingContainersEvents(cts *containers.Containers, enrichDisabled bool) []trace.Event
ExistingContainersEvents returns a list of events for each existing container
func FtraceHookEvent ¶ added in v0.20.0
func FtraceHookEvent(eventsCounter counter.Counter, out chan *trace.Event, baseEvent *trace.Event, selfLoadedProgs map[string]int)
FtraceHookEvent check for ftrace hooks periodically and reports them. It wakes up every random time to check if there was a change in the hooks.
func GetFtraceBaseEvent ¶ added in v0.20.0
GetFtraceBaseEvent creates an ftrace hook event with basic common fields
func InitNamespacesEvent ¶
InitNamespacesEvent collect the init process namespaces and create event from them.
func ParseArgsFDs ¶
Types ¶
type ByID ¶
type ByID []Definition
type Capabilities ¶
type Capabilities struct {
// contains filtered or unexported fields
}
func NewCapabilities ¶ added in v0.20.0
func NewCapabilities(base []cap.Value, ebpf []cap.Value) Capabilities
func (Capabilities) GetBase ¶
func (c Capabilities) GetBase() []cap.Value
func (Capabilities) GetEBPF ¶
func (c Capabilities) GetEBPF() []cap.Value
type CustomFunctionArgument ¶
type CustomFunctionArgument struct {
// contains filtered or unexported fields
}
func (CustomFunctionArgument) String ¶
func (arg CustomFunctionArgument) String() string
func (CustomFunctionArgument) Value ¶
func (arg CustomFunctionArgument) Value() uint64
type Definition ¶
type Definition struct {
// contains filtered or unexported fields
}
func NewDefinition ¶
func (Definition) GetDependencies ¶
func (d Definition) GetDependencies() Dependencies
func (Definition) GetDescription ¶ added in v0.20.0
func (d Definition) GetDescription() string
func (Definition) GetDocPath ¶
func (d Definition) GetDocPath() string
func (Definition) GetID ¶
func (d Definition) GetID() ID
func (Definition) GetID32Bit ¶
func (d Definition) GetID32Bit() ID
func (Definition) GetName ¶
func (d Definition) GetName() string
func (Definition) GetParams ¶
func (d Definition) GetParams() []trace.ArgMeta
func (Definition) GetProperties ¶ added in v0.20.0
func (d Definition) GetProperties() map[string]interface{}
func (Definition) GetSets ¶
func (d Definition) GetSets() []string
func (Definition) GetVersion ¶ added in v0.20.0
func (d Definition) GetVersion() Version
func (Definition) IsInternal ¶
func (d Definition) IsInternal() bool
func (Definition) IsNetwork ¶
func (d Definition) IsNetwork() bool
func (Definition) IsSignature ¶
func (d Definition) IsSignature() bool
func (Definition) IsSyscall ¶
func (d Definition) IsSyscall() bool
type DefinitionGroup ¶
type DefinitionGroup struct {
// contains filtered or unexported fields
}
DefinitionGroup is a struct describing a collection of Event Definitions.
var Core *DefinitionGroup
func NewDefinitionGroup ¶
func NewDefinitionGroup() *DefinitionGroup
NewDefinitionGroup creates a new Event Definition Group.
func (*DefinitionGroup) Add ¶
func (d *DefinitionGroup) Add(givenId ID, givenDef Definition) error
Add adds a definition to the definition group.
func (*DefinitionGroup) AddBatch ¶
func (d *DefinitionGroup) AddBatch(givenDefs map[ID]Definition) error
AddBatch adds multiple definitions to the definition group.
func (*DefinitionGroup) GetDefinitionByID ¶
func (d *DefinitionGroup) GetDefinitionByID(givenDef ID) Definition
GetDefinitionByID returns a definition by its ID. NOTE: should be used together with IsDefined when definition might not exist.
func (*DefinitionGroup) GetDefinitionIDByName ¶
func (d *DefinitionGroup) GetDefinitionIDByName(givenName string) (ID, bool)
GetDefinitionIDByName returns a definition ID by its name.
func (*DefinitionGroup) GetDefinitions ¶
func (d *DefinitionGroup) GetDefinitions() []Definition
GetDefinitions returns a new map of existing definitions. TODO: iterate internally after event definition refactor is finished ?
func (*DefinitionGroup) GetTailCalls ¶
func (d *DefinitionGroup) GetTailCalls(state map[ID]EventState) []TailCall
GetTailCalls returns a list of tailcalls of all definitions in the group (for initialization).
func (*DefinitionGroup) IDs32ToIDs ¶
func (d *DefinitionGroup) IDs32ToIDs() map[ID]ID
IDs32ToIDs returns a new map of 32-bit definition IDs to their IDs.
func (*DefinitionGroup) IsDefined ¶
func (d *DefinitionGroup) IsDefined(givenDef ID) bool
IsDefined returns true if the definition exists in the definition group. NOTE: needed as GetDefinitionByID() is used as GetDefinitionByID().Method() multiple times.
func (*DefinitionGroup) Length ¶
func (d *DefinitionGroup) Length() int
Length returns the number of definitions in the definition group.
func (*DefinitionGroup) NamesToIDs ¶
func (d *DefinitionGroup) NamesToIDs() map[string]ID
NamesToIDs returns a new map of definition names to their IDs.
type Dependencies ¶
type Dependencies struct {
// contains filtered or unexported fields
}
Dependencies is a struct that holds all the dependencies of a given event definition.
func NewDependencies ¶
func NewDependencies( givenIDs []ID, givenkSymbols []KSymbol, givenProbes []Probe, givenTailCalls []TailCall, givenCapabilities Capabilities, ) Dependencies
func (Dependencies) GetCapabilities ¶
func (d Dependencies) GetCapabilities() Capabilities
func (Dependencies) GetIDs ¶
func (d Dependencies) GetIDs() []ID
func (Dependencies) GetKSymbols ¶
func (d Dependencies) GetKSymbols() []KSymbol
func (Dependencies) GetProbes ¶
func (d Dependencies) GetProbes() []Probe
func (Dependencies) GetRequiredKSymbols ¶ added in v0.20.0
func (d Dependencies) GetRequiredKSymbols() []KSymbol
func (Dependencies) GetTailCalls ¶
func (d Dependencies) GetTailCalls() []TailCall
type EventState ¶
type ID ¶
type ID int32
const ( NetPacketBase ID = iota + 700 NetPacketRaw NetPacketIPBase NetPacketTCPBase NetPacketUDPBase NetPacketICMPBase NetPacketICMPv6Base NetPacketDNSBase NetPacketHTTPBase NetPacketCapture NetPacketFlow MaxNetID // network base events go ABOVE this item SysEnter SysExit SchedProcessFork SchedProcessExec SchedProcessExit SchedSwitch DoExit CapCapable VfsWrite VfsWritev VfsRead VfsReadv MemProtAlert CommitCreds SwitchTaskNS MagicWrite CgroupAttachTask CgroupMkdir CgroupRmdir SecurityBprmCheck SecurityFileOpen SecurityInodeUnlink SecuritySocketCreate SecuritySocketListen SecuritySocketConnect SecuritySocketAccept SecuritySocketBind SecuritySocketSetsockopt SecuritySbMount SecurityBPF SecurityBPFMap SecurityKernelReadFile SecurityInodeMknod SecurityPostReadFile SecurityInodeSymlinkEventId SecurityMmapFile SecurityFileMprotect SocketDup HiddenInodes KernelWrite ProcCreate KprobeAttach CallUsermodeHelper DirtyPipeSplice DebugfsCreateFile SyscallTableCheck DebugfsCreateDir DeviceAdd RegisterChrdev DoInitModule SocketAccept LoadElfPhdrs HookedProcFops PrintNetSeqOps TaskRename SecurityInodeRename DoSigaction BpfAttach KallsymsLookupName DoMmap PrintMemDump VfsUtimes DoTruncate FileModification InotifyWatch SecurityBpfProg ProcessExecuteFailed SecurityPathNotify SetFsPwd HiddenKernelModuleSeeker ModuleLoad ModuleFree ExecuteFinished SecurityBprmCredsForExec SecurityTaskSetrlimit MaxCommonID )
Common events (used by all architectures).
const ( NetPacketIPv4 ID = iota + 2000 NetPacketIPv6 NetPacketTCP NetPacketUDP NetPacketICMP NetPacketICMPv6 NetPacketDNS NetPacketDNSRequest NetPacketDNSResponse NetPacketHTTP NetPacketHTTPRequest NetPacketHTTPResponse NetFlowEnd NetFlowTCPBegin NetFlowTCPEnd MaxUserNetID NetTCPConnect InitNamespaces ContainerCreate ContainerRemove ExistingContainer HookedSyscall HookedSeqOps SymbolsLoaded SymbolsCollision HiddenKernelModule FtraceHook MaxUserSpace )
Events originated from user-space
const ( CaptureFileWrite ID = iota + 4000 CaptureExec CaptureModule CaptureMem CapturePcap CaptureNetPacket CaptureBpf CaptureFileRead )
Capture meta-events
const ( Read ID = 0 Write ID = 1 Open ID = 2 Close ID = 3 Stat ID = 4 Fstat ID = 5 Lstat ID = 6 Poll ID = 7 Lseek ID = 8 Mmap ID = 9 Mprotect ID = 10 Munmap ID = 11 Brk ID = 12 RtSigaction ID = 13 RtSigprocmask ID = 14 RtSigreturn ID = 15 Ioctl ID = 16 Pread64 ID = 17 Pwrite64 ID = 18 Readv ID = 19 Writev ID = 20 Access ID = 21 Pipe ID = 22 Select ID = 23 SchedYield ID = 24 Mremap ID = 25 Msync ID = 26 Mincore ID = 27 Madvise ID = 28 Shmget ID = 29 Shmat ID = 30 Shmctl ID = 31 Dup ID = 32 Dup2 ID = 33 Pause ID = 34 Nanosleep ID = 35 Getitimer ID = 36 Alarm ID = 37 Setitimer ID = 38 Getpid ID = 39 Sendfile ID = 40 Socket ID = 41 Connect ID = 42 Accept ID = 43 Sendto ID = 44 Recvfrom ID = 45 Sendmsg ID = 46 Recvmsg ID = 47 Shutdown ID = 48 Bind ID = 49 Listen ID = 50 Getsockname ID = 51 Getpeername ID = 52 Socketpair ID = 53 Setsockopt ID = 54 Getsockopt ID = 55 Clone ID = 56 Fork ID = 57 Vfork ID = 58 Execve ID = 59 Exit ID = 60 Wait4 ID = 61 Kill ID = 62 Uname ID = 63 Semget ID = 64 Semop ID = 65 Semctl ID = 66 Shmdt ID = 67 Msgget ID = 68 Msgsnd ID = 69 Msgrcv ID = 70 Msgctl ID = 71 Fcntl ID = 72 Flock ID = 73 Fsync ID = 74 Fdatasync ID = 75 Truncate ID = 76 Ftruncate ID = 77 Getdents ID = 78 Getcwd ID = 79 Chdir ID = 80 Fchdir ID = 81 Rename ID = 82 Mkdir ID = 83 Rmdir ID = 84 Creat ID = 85 Link ID = 86 Unlink ID = 87 Symlink ID = 88 Readlink ID = 89 Chmod ID = 90 Fchmod ID = 91 Chown ID = 92 Fchown ID = 93 Lchown ID = 94 Umask ID = 95 Gettimeofday ID = 96 Getrlimit ID = 97 Getrusage ID = 98 Sysinfo ID = 99 Times ID = 100 Ptrace ID = 101 Getuid ID = 102 Syslog ID = 103 Getgid ID = 104 Setuid ID = 105 Setgid ID = 106 Geteuid ID = 107 Getegid ID = 108 Setpgid ID = 109 Getppid ID = 110 Getpgrp ID = 111 Setsid ID = 112 Setreuid ID = 113 Setregid ID = 114 Getgroups ID = 115 Setgroups ID = 116 Setresuid ID = 117 Getresuid ID = 118 Setresgid ID = 119 Getresgid ID = 120 Getpgid ID = 121 Setfsuid ID = 122 Setfsgid ID = 123 Getsid ID = 124 Capget ID = 125 Capset ID = 126 RtSigpending ID = 127 RtSigtimedwait ID = 128 RtSigqueueinfo ID = 129 RtSigsuspend ID = 130 Sigaltstack ID = 131 Utime ID = 132 Mknod ID = 133 Uselib ID = 134 Personality ID = 135 Ustat ID = 136 Statfs ID = 137 Fstatfs ID = 138 Sysfs ID = 139 Getpriority ID = 140 Setpriority ID = 141 SchedSetparam ID = 142 SchedGetparam ID = 143 SchedSetscheduler ID = 144 SchedGetscheduler ID = 145 SchedGetPriorityMax ID = 146 SchedGetPriorityMin ID = 147 SchedRrGetInterval ID = 148 Mlock ID = 149 Munlock ID = 150 Mlockall ID = 151 Munlockall ID = 152 Vhangup ID = 153 ModifyLdt ID = 154 PivotRoot ID = 155 Sysctl ID = 156 Prctl ID = 157 ArchPrctl ID = 158 Adjtimex ID = 159 Setrlimit ID = 160 Chroot ID = 161 Sync ID = 162 Acct ID = 163 Settimeofday ID = 164 Mount ID = 165 Umount2 ID = 166 Swapon ID = 167 Swapoff ID = 168 Reboot ID = 169 Sethostname ID = 170 Setdomainname ID = 171 Iopl ID = 172 Ioperm ID = 173 CreateModule ID = 174 InitModule ID = 175 DeleteModule ID = 176 GetKernelSyms ID = 177 QueryModule ID = 178 Quotactl ID = 179 Nfsservctl ID = 180 Getpmsg ID = 181 Putpmsg ID = 182 Afs ID = 183 Tuxcall ID = 184 Security ID = 185 Gettid ID = 186 Readahead ID = 187 Setxattr ID = 188 Lsetxattr ID = 189 Fsetxattr ID = 190 Getxattr ID = 191 Lgetxattr ID = 192 Fgetxattr ID = 193 Listxattr ID = 194 Llistxattr ID = 195 Flistxattr ID = 196 Removexattr ID = 197 Lremovexattr ID = 198 Fremovexattr ID = 199 Tkill ID = 200 Time ID = 201 Futex ID = 202 SchedSetaffinity ID = 203 SchedGetaffinity ID = 204 SetThreadArea ID = 205 IoSetup ID = 206 IoDestroy ID = 207 IoGetevents ID = 208 IoSubmit ID = 209 IoCancel ID = 210 GetThreadArea ID = 211 EpollCreate ID = 213 EpollCtlOld ID = 214 EpollWaitOld ID = 215 RemapFilePages ID = 216 Getdents64 ID = 217 SetTidAddress ID = 218 RestartSyscall ID = 219 Semtimedop ID = 220 Fadvise64 ID = 221 TimerCreate ID = 222 TimerSettime ID = 223 TimerGettime ID = 224 TimerGetoverrun ID = 225 TimerDelete ID = 226 ClockSettime ID = 227 ClockGettime ID = 228 ClockGetres ID = 229 ClockNanosleep ID = 230 ExitGroup ID = 231 EpollWait ID = 232 EpollCtl ID = 233 Tgkill ID = 234 Utimes ID = 235 Vserver ID = 236 Mbind ID = 237 SetMempolicy ID = 238 GetMempolicy ID = 239 MqOpen ID = 240 MqUnlink ID = 241 MqTimedsend ID = 242 MqTimedreceive ID = 243 MqNotify ID = 244 MqGetsetattr ID = 245 KexecLoad ID = 246 Waitid ID = 247 AddKey ID = 248 RequestKey ID = 249 Keyctl ID = 250 IoprioSet ID = 251 IoprioGet ID = 252 InotifyInit ID = 253 InotifyAddWatch ID = 254 InotifyRmWatch ID = 255 MigratePages ID = 256 Openat ID = 257 Mkdirat ID = 258 Mknodat ID = 259 Fchownat ID = 260 Futimesat ID = 261 Newfstatat ID = 262 Unlinkat ID = 263 Renameat ID = 264 Linkat ID = 265 Symlinkat ID = 266 Readlinkat ID = 267 Fchmodat ID = 268 Faccessat ID = 269 Pselect6 ID = 270 Ppoll ID = 271 SetRobustList ID = 273 GetRobustList ID = 274 Splice ID = 275 Tee ID = 276 SyncFileRange ID = 277 Vmsplice ID = 278 MovePages ID = 279 Utimensat ID = 280 EpollPwait ID = 281 Signalfd ID = 282 TimerfdCreate ID = 283 Eventfd ID = 284 Fallocate ID = 285 TimerfdSettime ID = 286 TimerfdGettime ID = 287 Accept4 ID = 288 Signalfd4 ID = 289 Eventfd2 ID = 290 EpollCreate1 ID = 291 Dup3 ID = 292 Pipe2 ID = 293 InotifyInit1 ID = 294 Preadv ID = 295 Pwritev ID = 296 RtTgsigqueueinfo ID = 297 PerfEventOpen ID = 298 Recvmmsg ID = 299 FanotifyInit ID = 300 FanotifyMark ID = 301 Prlimit64 ID = 302 NameToHandleAt ID = 303 OpenByHandleAt ID = 304 ClockAdjtime ID = 305 Syncfs ID = 306 Sendmmsg ID = 307 Setns ID = 308 Getcpu ID = 309 ProcessVmReadv ID = 310 ProcessVmWritev ID = 311 Kcmp ID = 312 FinitModule ID = 313 SchedSetattr ID = 314 SchedGetattr ID = 315 Renameat2 ID = 316 Seccomp ID = 317 Getrandom ID = 318 MemfdCreate ID = 319 KexecFileLoad ID = 320 Bpf ID = 321 Execveat ID = 322 Userfaultfd ID = 323 Membarrier ID = 324 Mlock2 ID = 325 CopyFileRange ID = 326 Preadv2 ID = 327 Pwritev2 ID = 328 PkeyMprotect ID = 329 PkeyAlloc ID = 330 PkeyFree ID = 331 Statx ID = 332 IoPgetevents ID = 333 Rseq ID = 334 // 335 through 423 are unassigned to sync up with generic numbers PidfdSendSignal ID = iota + 89 // iota = 335 here 335 + 89 = 424 IoUringSetup IoUringEnter IoUringRegister OpenTree MoveMount Fsopen Fsconfig Fsmount Fspick PidfdOpen Clone3 CloseRange Openat2 PidfdGetfd Faccessat2 ProcessMadvise EpollPwait2 MountSetattr QuotactlFd LandlockCreateRuleset LandlockAddRule LandlockRestrictSelf MemfdSecret ProcessMrelease // Set of IDs for 32bit syscalls which have no parallel 64bit syscall Waitpid Oldfstat Break Oldstat Umount Stime Stty Gtty Nice Ftime Prof Signal Lock Mpx Ulimit Oldolduname Sigaction Sgetmask Ssetmask Sigsuspend Sigpending Oldlstat Readdir Profil Socketcall Olduname Idle Vm86old Ipc Sigreturn Sigprocmask Bdflush Afs_syscall Llseek OldSelect Vm86 OldGetrlimit Mmap2 Truncate64 Ftruncate64 Stat64 Lstat64 Fstat64 Lchown16 Getuid16 Getgid16 Geteuid16 Getegid16 Setreuid16 Setregid16 Getgroups16 Setgroups16 Fchown16 Setresuid16 Getresuid16 Setresgid16 Getresgid16 Chown16 Setuid16 Setgid16 Setfsuid16 Setfsgid16 Fcntl64 Sendfile32 Statfs64 Fstatfs64 Fadvise64_64 ClockGettime32 ClockSettime32 ClockAdjtime64 ClockGetresTime32 ClockNanosleepTime32 TimerGettime32 TimerSettime32 TimerfdGettime32 TimerfdSettime32 UtimensatTime32 Pselect6Time32 PpollTime32 IoPgeteventsTime32 RecvmmsgTime32 MqTimedsendTime32 MqTimedreceiveTime32 RtSigtimedwaitTime32 FutexTime32 SchedRrGetInterval32 MaxSyscallID )
const ( Sys32restart_syscall ID = 0 Sys32exit ID = 1 Sys32fork ID = 2 Sys32read ID = 3 Sys32write ID = 4 Sys32open ID = 5 Sys32close ID = 6 Sys32waitpid ID = 7 Sys32creat ID = 8 Sys32link ID = 9 Sys32unlink ID = 10 Sys32execve ID = 11 Sys32chdir ID = 12 Sys32time ID = 13 Sys32mknod ID = 14 Sys32chmod ID = 15 Sys32lchown ID = 16 Sys32break ID = 17 Sys32oldstat ID = 18 Sys32lseek ID = 19 Sys32getpid ID = 20 Sys32mount ID = 21 Sys32umount ID = 22 Sys32setuid ID = 23 Sys32getuid ID = 24 Sys32stime ID = 25 Sys32ptrace ID = 26 Sys32alarm ID = 27 Sys32oldfstat ID = 28 Sys32pause ID = 29 Sys32utime ID = 30 Sys32stty ID = 31 Sys32gtty ID = 32 Sys32access ID = 33 Sys32nice ID = 34 Sys32ftime ID = 35 Sys32sync ID = 36 Sys32kill ID = 37 Sys32rename ID = 38 Sys32mkdir ID = 39 Sys32rmdir ID = 40 Sys32dup ID = 41 Sys32pipe ID = 42 Sys32times ID = 43 Sys32prof ID = 44 Sys32brk ID = 45 Sys32setgid ID = 46 Sys32getgid ID = 47 Sys32signal ID = 48 Sys32geteuid ID = 49 Sys32getegid ID = 50 Sys32acct ID = 51 Sys32umount2 ID = 52 Sys32lock ID = 53 Sys32ioctl ID = 54 Sys32fcntl ID = 55 Sys32mpx ID = 56 Sys32setpgid ID = 57 Sys32ulimit ID = 58 Sys32oldolduname ID = 59 Sys32umask ID = 60 Sys32chroot ID = 61 Sys32ustat ID = 62 Sys32dup2 ID = 63 Sys32getppid ID = 64 Sys32getpgrp ID = 65 Sys32setsid ID = 66 Sys32sigaction ID = 67 Sys32sgetmask ID = 68 Sys32ssetmask ID = 69 Sys32setreuid ID = 70 Sys32setregid ID = 71 Sys32sigsuspend ID = 72 Sys32sigpending ID = 73 Sys32sethostname ID = 74 Sys32setrlimit ID = 75 Sys32getrlimit ID = 76 Sys32getrusage ID = 77 Sys32gettimeofday ID = 78 Sys32settimeofday ID = 79 Sys32getgroups ID = 80 Sys32setgroups ID = 81 Sys32select ID = 82 Sys32symlink ID = 83 Sys32oldlstat ID = 84 Sys32readlink ID = 85 Sys32uselib ID = 86 Sys32swapon ID = 87 Sys32reboot ID = 88 Sys32readdir ID = 89 Sys32mmap ID = 90 Sys32munmap ID = 91 Sys32truncate ID = 92 Sys32ftruncate ID = 93 Sys32fchmod ID = 94 Sys32fchown ID = 95 Sys32getpriority ID = 96 Sys32setpriority ID = 97 Sys32profil ID = 98 Sys32statfs ID = 99 Sys32fstatfs ID = 100 Sys32ioperm ID = 101 Sys32socketcall ID = 102 Sys32syslog ID = 103 Sys32setitimer ID = 104 Sys32getitimer ID = 105 Sys32stat ID = 106 Sys32lstat ID = 107 Sys32fstat ID = 108 Sys32olduname ID = 109 Sys32iopl ID = 110 Sys32vhangup ID = 111 Sys32idle ID = 112 Sys32vm86old ID = 113 Sys32wait4 ID = 114 Sys32swapoff ID = 115 Sys32sysinfo ID = 116 Sys32ipc ID = 117 Sys32fsync ID = 118 Sys32sigreturn ID = 119 Sys32clone ID = 120 Sys32setdomainname ID = 121 Sys32uname ID = 122 Sys32modify_ldt ID = 123 Sys32adjtimex ID = 124 Sys32mprotect ID = 125 Sys32sigprocmask ID = 126 Sys32create_module ID = 127 Sys32init_module ID = 128 Sys32delete_module ID = 129 Sys32get_kernel_syms ID = 130 Sys32quotactl ID = 131 Sys32getpgid ID = 132 Sys32fchdir ID = 133 Sys32bdflush ID = 134 Sys32sysfs ID = 135 Sys32personality ID = 136 Sys32afs_syscall ID = 137 Sys32setfsuid ID = 138 Sys32setfsgid ID = 139 Sys32_llseek ID = 140 Sys32getdents ID = 141 Sys32_newselect ID = 142 Sys32flock ID = 143 Sys32msync ID = 144 Sys32readv ID = 145 Sys32writev ID = 146 Sys32getsid ID = 147 Sys32fdatasync ID = 148 Sys32_sysctl ID = 149 Sys32mlock ID = 150 Sys32munlock ID = 151 Sys32mlockall ID = 152 Sys32munlockall ID = 153 Sys32sched_setparam ID = 154 Sys32sched_getparam ID = 155 Sys32sched_setscheduler ID = 156 Sys32sched_getscheduler ID = 157 Sys32sched_yield ID = 158 Sys32sched_get_priority_max ID = 159 Sys32sched_get_priority_min ID = 160 Sys32sched_rr_get_interval ID = 161 Sys32nanosleep ID = 162 Sys32mremap ID = 163 Sys32setresuid ID = 164 Sys32getresuid ID = 165 Sys32vm86 ID = 166 Sys32query_module ID = 167 Sys32poll ID = 168 Sys32nfsservctl ID = 169 Sys32setresgid ID = 170 Sys32getresgid ID = 171 Sys32prctl ID = 172 Sys32rt_sigreturn ID = 173 Sys32rt_sigaction ID = 174 Sys32rt_sigprocmask ID = 175 Sys32rt_sigpending ID = 176 Sys32rt_sigtimedwait ID = 177 Sys32rt_sigqueueinfo ID = 178 Sys32rt_sigsuspend ID = 179 Sys32pread64 ID = 180 Sys32pwrite64 ID = 181 Sys32chown ID = 182 Sys32getcwd ID = 183 Sys32capget ID = 184 Sys32capset ID = 185 Sys32sigaltstack ID = 186 Sys32sendfile ID = 187 Sys32getpmsg ID = 188 Sys32putpmsg ID = 189 Sys32vfork ID = 190 Sys32ugetrlimit ID = 191 Sys32mmap2 ID = 192 Sys32truncate64 ID = 193 Sys32ftruncate64 ID = 194 Sys32stat64 ID = 195 Sys32lstat64 ID = 196 Sys32fstat64 ID = 197 Sys32lchown32 ID = 198 Sys32getuid32 ID = 199 Sys32getgid32 ID = 200 Sys32geteuid32 ID = 201 Sys32getegid32 ID = 202 Sys32setreuid32 ID = 203 Sys32setregid32 ID = 204 Sys32getgroups32 ID = 205 Sys32setgroups32 ID = 206 Sys32fchown32 ID = 207 Sys32setresuid32 ID = 208 Sys32getresuid32 ID = 209 Sys32setresgid32 ID = 210 Sys32getresgid32 ID = 211 Sys32chown32 ID = 212 Sys32setuid32 ID = 213 Sys32setgid32 ID = 214 Sys32setfsuid32 ID = 215 Sys32setfsgid32 ID = 216 Sys32pivot_root ID = 217 Sys32mincore ID = 218 Sys32madvise ID = 219 Sys32getdents64 ID = 220 Sys32fcntl64 ID = 221 Sys32gettid ID = 224 Sys32readahead ID = 225 Sys32setxattr ID = 226 Sys32lsetxattr ID = 227 Sys32fsetxattr ID = 228 Sys32getxattr ID = 229 Sys32lgetxattr ID = 230 Sys32fgetxattr ID = 231 Sys32listxattr ID = 232 Sys32llistxattr ID = 233 Sys32flistxattr ID = 234 Sys32removexattr ID = 235 Sys32lremovexattr ID = 236 Sys32fremovexattr ID = 237 Sys32tkill ID = 238 Sys32sendfile64 ID = 239 Sys32futex ID = 240 Sys32sched_setaffinity ID = 241 Sys32sched_getaffinity ID = 242 Sys32set_thread_area ID = 243 Sys32get_thread_area ID = 244 Sys32io_setup ID = 245 Sys32io_destroy ID = 246 Sys32io_getevents ID = 247 Sys32io_submit ID = 248 Sys32io_cancel ID = 249 Sys32fadvise64 ID = 250 Sys32exit_group ID = 252 Sys32epoll_create ID = 254 Sys32epoll_ctl ID = 255 Sys32epoll_wait ID = 256 Sys32remap_file_pages ID = 257 Sys32set_tid_address ID = 258 Sys32timer_create ID = 259 Sys32timer_settime ID = 260 Sys32timer_gettime ID = 261 Sys32timer_getoverrun ID = 262 Sys32timer_delete ID = 263 Sys32clock_settime ID = 264 Sys32clock_gettime ID = 265 Sys32clock_getres ID = 266 Sys32clock_nanosleep ID = 267 Sys32statfs64 ID = 268 Sys32fstatfs64 ID = 269 Sys32tgkill ID = 270 Sys32utimes ID = 271 Sys32fadvise64_64 ID = 272 Sys32vserver ID = 273 Sys32mbind ID = 274 Sys32get_mempolicy ID = 275 Sys32set_mempolicy ID = 276 Sys32mq_open ID = 277 Sys32mq_unlink ID = 278 Sys32mq_timedsend ID = 279 Sys32mq_timedreceive ID = 280 Sys32mq_notify ID = 281 Sys32mq_getsetattr ID = 282 Sys32kexec_load ID = 283 Sys32waitid ID = 284 Sys32add_key ID = 286 Sys32request_key ID = 287 Sys32keyctl ID = 288 Sys32ioprio_set ID = 289 Sys32ioprio_get ID = 290 Sys32inotify_init ID = 291 Sys32inotify_add_watch ID = 292 Sys32inotify_rm_watch ID = 293 Sys32migrate_pages ID = 294 Sys32openat ID = 295 Sys32mkdirat ID = 296 Sys32mknodat ID = 297 Sys32fchownat ID = 298 Sys32futimesat ID = 299 Sys32fstatat64 ID = 300 Sys32unlinkat ID = 301 Sys32renameat ID = 302 Sys32linkat ID = 303 Sys32symlinkat ID = 304 Sys32readlinkat ID = 305 Sys32fchmodat ID = 306 Sys32faccessat ID = 307 Sys32pselect6 ID = 308 Sys32ppoll ID = 309 Sys32set_robust_list ID = 311 Sys32get_robust_list ID = 312 Sys32splice ID = 313 Sys32sync_file_range ID = 314 Sys32tee ID = 315 Sys32vmsplice ID = 316 Sys32move_pages ID = 317 Sys32getcpu ID = 318 Sys32epoll_pwait ID = 319 Sys32utimensat ID = 320 Sys32signalfd ID = 321 Sys32timerfd_create ID = 322 Sys32eventfd ID = 323 Sys32fallocate ID = 324 Sys32timerfd_settime ID = 325 Sys32timerfd_gettime ID = 326 Sys32signalfd4 ID = 327 Sys32eventfd2 ID = 328 Sys32epoll_create1 ID = 329 Sys32dup3 ID = 330 Sys32pipe2 ID = 331 Sys32inotify_init1 ID = 332 Sys32preadv ID = 333 Sys32pwritev ID = 334 Sys32rt_tgsigqueueinfo ID = 335 Sys32perf_event_open ID = 336 Sys32recvmmsg ID = 337 Sys32fanotify_init ID = 338 Sys32fanotify_mark ID = 339 Sys32prlimit64 ID = 340 Sys32name_to_handle_at ID = 341 Sys32open_by_handle_at ID = 342 Sys32clock_adjtime ID = 343 Sys32syncfs ID = 344 Sys32sendmmsg ID = 345 Sys32setns ID = 346 Sys32process_vm_readv ID = 347 Sys32process_vm_writev ID = 348 Sys32kcmp ID = 349 Sys32finit_module ID = 350 Sys32sched_setattr ID = 351 Sys32sched_getattr ID = 352 Sys32renameat2 ID = 353 Sys32seccomp ID = 354 Sys32getrandom ID = 355 Sys32memfd_create ID = 356 Sys32bpf ID = 357 Sys32execveat ID = 358 Sys32socket ID = 359 Sys32socketpair ID = 360 Sys32bind ID = 361 Sys32connect ID = 362 Sys32listen ID = 363 Sys32accept4 ID = 364 Sys32getsockopt ID = 365 Sys32setsockopt ID = 366 Sys32getsockname ID = 367 Sys32getpeername ID = 368 Sys32sendto ID = 369 Sys32sendmsg ID = 370 Sys32recvfrom ID = 371 Sys32recvmsg ID = 372 Sys32shutdown ID = 373 Sys32userfaultfd ID = 374 Sys32membarrier ID = 375 Sys32mlock2 ID = 376 Sys32copy_file_range ID = 377 Sys32preadv2 ID = 378 Sys32pwritev2 ID = 379 Sys32pkey_mprotect ID = 380 Sys32pkey_alloc ID = 381 Sys32pkey_free ID = 382 Sys32statx ID = 383 Sys32arch_prctl ID = 384 Sys32io_pgetevents ID = 385 Sys32rseq ID = 386 Sys32semget ID = 393 Sys32semctl ID = 394 Sys32shmget ID = 395 Sys32shmctl ID = 396 Sys32shmat ID = 397 Sys32shmdt ID = 398 Sys32msgget ID = 399 Sys32msgsnd ID = 400 Sys32msgrcv ID = 401 Sys32msgctl ID = 402 Sys32clock_gettime64 ID = 403 Sys32clock_settime64 ID = 404 Sys32clock_adjtime64 ID = 405 Sys32clock_getres_time64 ID = 406 Sys32clock_nanosleep_time64 ID = 407 Sys32timer_gettime64 ID = 408 Sys32timer_settime64 ID = 409 Sys32timerfd_gettime64 ID = 410 Sys32timerfd_settime64 ID = 411 Sys32utimensat_time64 ID = 412 Sys32pselect6_time64 ID = 413 Sys32ppoll_time64 ID = 414 Sys32io_pgetevents_time64 ID = 416 Sys32recvmmsg_time64 ID = 417 Sys32mq_timedsend_time64 ID = 418 Sys32mq_timedreceive_time64 ID = 419 Sys32semtimedop_time64 ID = 420 Sys32rt_sigtimedwait_time64 ID = 421 Sys32futex_time64 ID = 422 Sys32sched_rr_get_interval_time64 ID = 423 Sys32pidfd_send_signal ID = 424 Sys32io_uring_setup ID = 425 Sys32io_uring_enter ID = 426 Sys32io_uring_register ID = 427 Sys32open_tree ID = 428 Sys32move_mount ID = 429 Sys32fsopen ID = 430 Sys32fsconfig ID = 431 Sys32fsmount ID = 432 Sys32fspick ID = 433 Sys32pidfd_open ID = 434 Sys32clone3 ID = 435 Sys32close_range ID = 436 Sys32openat2 ID = 437 Sys32pidfd_getfd ID = 438 Sys32faccessat2 ID = 439 Sys32process_madvise ID = 440 Sys32epoll_pwait2 ID = 441 Sys32mount_setattr ID = 442 Sys32quotactl_fd ID = 443 Sys32landlock_create_ruleset ID = 444 Sys32landlock_add_rule ID = 445 Sys32landlock_restrict_self ID = 446 Sys32memfd_secret ID = 447 Sys32process_mrelease ID = 448 )
x86 32bit syscall numbers Used for compatibility mode https://github.com/torvalds/linux/blob/master/arch/x86/entry/syscalls/syscall_32.tbl
type KSymbol ¶
type KSymbol struct {
// contains filtered or unexported fields
}
func NewKSymbol ¶ added in v0.20.0
func (KSymbol) GetSymbolName ¶ added in v0.20.0
func (KSymbol) IsRequired ¶
type KernelRestrictions ¶ added in v0.20.0
type Probe ¶
type Probe struct {
// contains filtered or unexported fields
}
func (Probe) IsRequired ¶
type TailCall ¶
type TailCall struct {
// contains filtered or unexported fields
}
func (TailCall) GetIndexes ¶
func (TailCall) GetMapName ¶
func (TailCall) GetProgName ¶
type Version ¶ added in v0.20.0
type Version struct {
// contains filtered or unexported fields
}
1. Major field is bumped whenever some data the event used to have was changed e.g. a field was renamed or removed 2. Minor field is bumped whenever a non breaking change occurs e.g. a new field was added to the event 3. Patch field is bumped whenever something is changed in the way the event works internally e.g. some bug was fixed in the code
func NewVersion ¶ added in v0.20.0
NewVersion creates a new version
func NewVersionFromString ¶ added in v0.20.0
NewVersionFromString creates a new version from a string
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
package queue defines the interface and and implementation of a queue for events storage.
|
package queue defines the interface and and implementation of a queue for events storage. |
Package sorting is responsible for sorting incoming events from the BPF programs chronologically.
|
Package sorting is responsible for sorting incoming events from the BPF programs chronologically. |