aquasecurity / tracee

Linux Runtime Security and Forensics using eBPF
https://aquasecurity.github.io/tracee/latest
Apache License 2.0
3.55k stars 412 forks source link

[BUG] kernel symbols not loaded correctly #2382

Closed AsafEitani closed 1 year ago

AsafEitani commented 1 year ago

Prerequisites

Select one OR another:

Bug description

This is how I'm executing tracee (cmdline):

dist/tracee-ebpf -t e=hooked_syscalls,hooked_seq_ops,hooked_proc_fops,do_init_module,finit_module,security_kernel_read_file

This is the error I'm getting:

TIME             UID    COMM             PID     TID     RET              EVENT                ARGS

End of events stream
Stats: {EventCount:0 EventsFiltered:0 NetEvCount:0 ErrorCount:0 LostEvCount:0 LostWrCount:0 LostNtCount:0}
{"level":"fatal","ts":1669541110.5893548,"msg":"app","error":"error initializing Tracee: kernel symbols were not loaded currectly"}

Steps to reproduce

I have no idea what caused it.

Context

Relevant information about my setup:

Additional Information (files, logs, etc)

yanivagman commented 1 year ago

See this recent change: https://github.com/aquasecurity/tracee/pull/2370

AsafEitani commented 1 year ago

--caps bypass=false fixes this issue as I was not running with privileges.