From aa27601f9e978d77b528ddf56e670c24f511d0d2 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 15 Nov 2019 10:57:49 +0100 Subject: pkg/host: rename some features Rename some features in preparation for subsequent changes which will align names across the code base. --- pkg/host/features_linux.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'pkg/host/features_linux.go') diff --git a/pkg/host/features_linux.go b/pkg/host/features_linux.go index a1586e8ac..7b4b7b243 100644 --- a/pkg/host/features_linux.go +++ b/pkg/host/features_linux.go @@ -21,10 +21,10 @@ func init() { checkFeature[FeatureSandboxSetuid] = unconditionallyEnabled checkFeature[FeatureSandboxNamespace] = checkSandboxNamespace checkFeature[FeatureSandboxAndroid] = checkSandboxAndroid - checkFeature[FeatureFaultInjection] = checkFaultInjection - checkFeature[FeatureLeakChecking] = checkLeakChecking - checkFeature[FeatureNetworkInjection] = checkNetworkInjection - checkFeature[FeatureNetworkDevices] = unconditionallyEnabled + checkFeature[FeatureFault] = checkFault + checkFeature[FeatureLeak] = checkLeak + checkFeature[FeatureNetInjection] = checkNetInjection + checkFeature[FeatureNetDevices] = unconditionallyEnabled checkFeature[FeatureKCSAN] = checkKCSAN checkFeature[FeatureDevlinkPCI] = checkDevlinkPCI } @@ -128,7 +128,7 @@ type KcovRemoteArg struct { // Handles []uint64 goes here. } -func checkFaultInjection() string { +func checkFault() string { if err := osutil.IsAccessible("/proc/self/make-it-fail"); err != nil { return "CONFIG_FAULT_INJECTION is not enabled" } @@ -144,7 +144,7 @@ func checkFaultInjection() string { return "" } -func checkLeakChecking() string { +func checkLeak() string { if reason := checkDebugFS(); reason != "" { return reason } @@ -176,7 +176,7 @@ func checkSandboxAndroid() string { return "" } -func checkNetworkInjection() string { +func checkNetInjection() string { if err := osutil.IsAccessible("/dev/net/tun"); err != nil { return err.Error() } -- cgit mrf-deployment