aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/host/host_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/host/host_linux.go')
-rw-r--r--pkg/host/host_linux.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/host/host_linux.go b/pkg/host/host_linux.go
index 25da4b016..da208bbad 100644
--- a/pkg/host/host_linux.go
+++ b/pkg/host/host_linux.go
@@ -395,6 +395,7 @@ func init() {
checkFeature[FeatureLeakChecking] = checkLeakChecking
checkFeature[FeatureNetworkInjection] = checkNetworkInjection
checkFeature[FeatureNetworkDevices] = unconditionallyEnabled
+ checkFeature[FeatureKCSAN] = checkKCSAN
}
func checkCoverage() string {
@@ -556,3 +557,10 @@ func checkDebugFS() string {
}
return ""
}
+
+func checkKCSAN() string {
+ if err := osutil.IsAccessible("/proc/kcsaninfo"); err != nil {
+ return err.Error()
+ }
+ return ""
+}