mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
build parent process hierarchy of already running processes
We build the parent process tree of a process when it's executed for the first time. Now we also build the tree when an already running process opens a new outbound connection by the first time.
This commit is contained in:
parent
0a911ef791
commit
be87bc538e
1 changed files with 1 additions and 0 deletions
|
@ -180,6 +180,7 @@ func findConnProcess(value *networkEventT, connKey string) (proc *procmon.Proces
|
|||
proc = procmon.NewProcess(int(value.Pid), comm)
|
||||
proc.UID = int(value.UID)
|
||||
procmon.EventsCache.Add(proc)
|
||||
procmon.EventsCache.Update(proc, nil)
|
||||
log.Debug("[ebpf conn] not in cache, NOR in execEvents: %s, %d -> %s -> %s", connKey, proc.ID, proc.Path, proc.Args)
|
||||
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue