aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/host/features.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.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.go')
-rw-r--r--pkg/host/features.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/pkg/host/features.go b/pkg/host/features.go
index 53af77241..9c02defbd 100644
--- a/pkg/host/features.go
+++ b/pkg/host/features.go
@@ -19,10 +19,10 @@ const (
FeatureSandboxSetuid
FeatureSandboxNamespace
FeatureSandboxAndroid
- FeatureFaultInjection
- FeatureLeakChecking
- FeatureNetworkInjection
- FeatureNetworkDevices
+ FeatureFault
+ FeatureLeak
+ FeatureNetInjection
+ FeatureNetDevices
FeatureKCSAN
FeatureDevlinkPCI
numFeatures
@@ -52,10 +52,10 @@ func Check(target *prog.Target) (*Features, error) {
FeatureSandboxSetuid: {Name: "setuid sandbox", Reason: unsupported},
FeatureSandboxNamespace: {Name: "namespace sandbox", Reason: unsupported},
FeatureSandboxAndroid: {Name: "Android sandbox", Reason: unsupported},
- FeatureFaultInjection: {Name: "fault injection", Reason: unsupported},
- FeatureLeakChecking: {Name: "leak checking", Reason: unsupported},
- FeatureNetworkInjection: {Name: "net packet injection", Reason: unsupported},
- FeatureNetworkDevices: {Name: "net device setup", Reason: unsupported},
+ FeatureFault: {Name: "fault injection", Reason: unsupported},
+ FeatureLeak: {Name: "leak checking", Reason: unsupported},
+ FeatureNetInjection: {Name: "net packet injection", Reason: unsupported},
+ FeatureNetDevices: {Name: "net device setup", Reason: unsupported},
FeatureKCSAN: {Name: "concurrency sanitizer", Reason: unsupported},
FeatureDevlinkPCI: {Name: "devlink PCI setup", Reason: unsupported},
}
@@ -83,10 +83,10 @@ func Setup(target *prog.Target, features *Features, featureFlags csource.Feature
return nil
}
args := []string{"setup"}
- if features[FeatureLeakChecking].Enabled {
+ if features[FeatureLeak].Enabled {
args = append(args, "leak")
}
- if features[FeatureFaultInjection].Enabled {
+ if features[FeatureFault].Enabled {
args = append(args, "fault")
}
if target.OS == "linux" && featureFlags["binfmt_misc"].Enabled {