From 96ca609101ded7bf280d1bc2c50031d81be5d1cf Mon Sep 17 00:00:00 2001 From: Amit Schendel Date: Wed, 15 Jan 2025 11:58:35 +0000 Subject: [PATCH 1/2] Fixing seccomp init Signed-off-by: Amit Schendel --- pkg/containerwatcher/v1/container_watcher_private.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/containerwatcher/v1/container_watcher_private.go b/pkg/containerwatcher/v1/container_watcher_private.go index b62ecc36..e1117812 100644 --- a/pkg/containerwatcher/v1/container_watcher_private.go +++ b/pkg/containerwatcher/v1/container_watcher_private.go @@ -194,7 +194,7 @@ func (ch *IGContainerWatcher) stopContainerCollection() { } func (ch *IGContainerWatcher) startTracers() error { - if ch.cfg.EnableApplicationProfile { + if ch.cfg.EnableRuntimeDetection || ch.cfg.EnableSeccomp { // Start syscall tracer if err := ch.startSystemcallTracing(); err != nil { logger.L().Error("IGContainerWatcher - error starting seccomp tracing", helpers.Error(err)) From 0ca99abccc93b6b6bb9c1c17b9ab91ae2ce33020 Mon Sep 17 00:00:00 2001 From: Amit Schendel Date: Wed, 15 Jan 2025 11:59:58 +0000 Subject: [PATCH 2/2] Fixing network enable Signed-off-by: Amit Schendel --- pkg/containerwatcher/v1/container_watcher_private.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/containerwatcher/v1/container_watcher_private.go b/pkg/containerwatcher/v1/container_watcher_private.go index e1117812..70fb167f 100644 --- a/pkg/containerwatcher/v1/container_watcher_private.go +++ b/pkg/containerwatcher/v1/container_watcher_private.go @@ -217,7 +217,7 @@ func (ch *IGContainerWatcher) startTracers() error { logger.L().Info("started open tracing") } - if ch.cfg.EnableNetworkTracing { + if ch.cfg.EnableNetworkTracing || ch.cfg.EnableRuntimeDetection { if err := ch.startKubernetesResolution(); err != nil { logger.L().Error("IGContainerWatcher - error starting kubernetes resolution", helpers.Error(err)) return err