-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70dcb5d
commit 1d77ce2
Showing
3 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Unless explicitly stated otherwise all files in this repository are licensed | ||
// under the Apache License Version 2.0. | ||
// This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
// Copyright 2016-present Datadog, Inc. | ||
|
||
//go:build darwin | ||
|
||
package config | ||
|
||
// ProcessEventDataStreamSupported returns true if process event data stream is supported | ||
func ProcessEventDataStreamSupported() bool { | ||
return false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Unless explicitly stated otherwise all files in this repository are licensed | ||
// under the Apache License Version 2.0. | ||
// This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
// Copyright 2016-present Datadog, Inc. | ||
|
||
//go:build linux | ||
|
||
package config | ||
|
||
import ( | ||
ebpfkernel "github.com/DataDog/datadog-agent/pkg/security/ebpf/kernel" | ||
"github.com/DataDog/datadog-agent/pkg/util/log" | ||
) | ||
|
||
// ProcessEventDataStreamSupported returns true if process event data stream is supported | ||
func ProcessEventDataStreamSupported() bool { | ||
kernelVersion, err := ebpfkernel.NewKernelVersion() | ||
if err != nil { | ||
log.Errorf("unable to detect the kernel version: %s", err) | ||
return false | ||
} | ||
// This is different from the check VerifyOSVersion in probe_ebpf.go | ||
// We ran tests on 4.14 and realize we are able to support it for that kernel version | ||
// Since we have a large customer base with 4.14, we decided to enable for them | ||
if !kernelVersion.IsRH7Kernel() && kernelVersion.Code < ebpfkernel.Kernel4_14 { | ||
return false | ||
} | ||
|
||
return true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters