File tree Expand file tree Collapse file tree
internal/controller/datadogagent/component/agent Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -288,9 +288,11 @@ func DefaultSyscallsForSystemProbe() []string {
288288func syscallsForSystemProbe (ddaSpec * v2alpha1.DatadogAgentSpec ) []string {
289289 syscalls := DefaultSyscallsForSystemProbe ()
290290
291- if ddaSpec .Features .CWS != nil &&
292- ddaSpec .Features .CWS .Enabled != nil && * ddaSpec .Features .CWS .Enabled &&
293- ddaSpec .Features .CWS .Enforcement != nil && * ddaSpec .Features .CWS .Enforcement .Enabled {
291+ if (ddaSpec .Features .CWS != nil && ddaSpec .Features .CWS .Enabled != nil && * ddaSpec .Features .CWS .Enabled &&
292+ ddaSpec .Features .CWS .Enforcement != nil && ddaSpec .Features .CWS .Enforcement .Enabled != nil && * ddaSpec .Features .CWS .Enforcement .Enabled ) ||
293+ (ddaSpec .Features .CSPM != nil && ddaSpec .Features .CSPM .Enabled != nil && * ddaSpec .Features .CSPM .Enabled &&
294+ ddaSpec .Features .CSPM .HostBenchmarks != nil && ddaSpec .Features .CSPM .HostBenchmarks .Enabled != nil && * ddaSpec .Features .CSPM .HostBenchmarks .Enabled &&
295+ ddaSpec .Features .CSPM .RunInSystemProbe != nil && * ddaSpec .Features .CSPM .RunInSystemProbe ) {
294296 syscalls = append (syscalls , "kill" )
295297 }
296298 return syscalls
You can’t perform that action at this time.
0 commit comments