-
Notifications
You must be signed in to change notification settings - Fork 392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add execution information flags to tracee-ebpf #1041
Conversation
LGTM! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know too late for this PR, but capture-exec, capture-profile, and now output-execinfo have much in common, the code can be simplified.
also you forgot to document the flag.
Not a feedback for this PR, but this demonstrated the problem we have with our "custom" events which are undocumented and unintuitive. |
Add process creation information to tracee-ebpf events.
The flag added is "-o option:exec-info" and calculates the file hash, file ctime and container ctime.
if the process was created on the host - it will get the mnt ctime.
Also changed the event for capturing to sched_process_exec instead of security_bprm_check.
There is a cache based on LRU for both container ctime and hash calculation.