From d58abe563fb6c507aaa309518e45d031a72398d0 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 19 Sep 2023 16:42:54 +0200 Subject: [PATCH] Do not get process+profile for info only packets In order to stop creating profiles for processes within docker. --- network/connection.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/network/connection.go b/network/connection.go index 08390779..ab3ec3fb 100644 --- a/network/connection.go +++ b/network/connection.go @@ -488,6 +488,12 @@ func (conn *Connection) GatherConnectionInfo(pkt packet.Packet) (err error) { // Errors are informational and are logged to the context. } + // Only get process and profile with first real packet. + // TODO: Remove when we got full VM/Docker support. + if pkt.InfoOnly() { + return nil + } + // Get Process and Profile. if conn.process == nil { conn.process, err = process.GetProcessWithProfile(pkt.Ctx(), conn.PID)