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.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'pkg/host/features.go') 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 { -- cgit mrf-deployment