-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pidMap holds mappings from PID to the most recent exec ID for the PID. This is used to find the parent of exec events that come after another exec event (i.e. not a clone). This can be racy as events can come OOO to the user space. This information is also available in the execve_map inside the kernel where all events happen in-order. 45745a0 introduced a new field in msg_execve_event (cleanup_key) that keeps the parent of the execve event. In that case this was needed for cleanup. We can use the same information for the parent and remove entirely the pidMap. If there is a case where we cannot find the entry in the execve_map, we use as a parent the view of Linux (i.e. the process that clones the current process and not the previous execve). Signed-off-by: Anastasios Papagiannis <[email protected]>
- Loading branch information
Showing
4 changed files
with
9 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters