Skip to content

Commit

Permalink
[CWS] scope the option to force disable fim_enabled to windows only (
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcacheux authored and alexgallotta committed May 9, 2024
1 parent e9acd8d commit f291fc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/system-probe/config/adjust_security.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
package config

import (
"runtime"
"time"

"github.com/DataDog/datadog-agent/pkg/config"
Expand All @@ -30,7 +31,7 @@ func adjustSecurity(cfg config.Config) {

if cfg.GetBool(secNS("enabled")) {
// if runtime is enabled then we enable fim as well (except if force disabled)
if !cfg.IsSet(secNS("fim_enabled")) {
if runtime.GOOS != "windows" || !cfg.IsSet(secNS("fim_enabled")) {
cfg.Set(secNS("fim_enabled"), true, model.SourceAgentRuntime)
}
} else {
Expand Down

0 comments on commit f291fc0

Please sign in to comment.