aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/host/features_linux.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-11-15 10:57:49 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-11-16 09:58:54 +0100
commitaa27601f9e978d77b528ddf56e670c24f511d0d2 (patch)
treedb0dc0f71a6e2b9c92cf675d6752d39344b57629 /pkg/host/features_linux.go
parent157653cfe75287b566755e9aed29a552f74d7e4c (diff)
pkg/host: rename some features
Rename some features in preparation for subsequent changes which will align names across the code base.
Diffstat (limited to 'pkg/host/features_linux.go')
-rw-r--r--pkg/host/features_linux.go14
1 files changed, 7 insertions, 7 deletions
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()
}