From 9bc2a903f0cb0556e011b580d8be93a897245653 Mon Sep 17 00:00:00 2001 From: Greg Steuck Date: Sun, 18 Nov 2018 11:29:12 -0800 Subject: openbsd: enable packet injection --- pkg/host/host.go | 2 +- pkg/host/host_openbsd.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'pkg') diff --git a/pkg/host/host.go b/pkg/host/host.go index 36c42de65..4b9b7be18 100644 --- a/pkg/host/host.go +++ b/pkg/host/host.go @@ -82,7 +82,7 @@ func Check(target *prog.Target) (*Features, error) { FeatureSandboxAndroidUntrustedApp: {Name: "Android sandbox", Reason: unsupported}, FeatureFaultInjection: {Name: "fault injection", Reason: unsupported}, FeatureLeakChecking: {Name: "leak checking", Reason: unsupported}, - FeatureNetworkInjection: {Name: "net packed injection", Reason: unsupported}, + FeatureNetworkInjection: {Name: "net packet injection", Reason: unsupported}, FeatureNetworkDevices: {Name: "net device setup", Reason: unsupported}, } if target.OS == "akaros" || target.OS == "test" { diff --git a/pkg/host/host_openbsd.go b/pkg/host/host_openbsd.go index 238edd46d..f750929a5 100644 --- a/pkg/host/host_openbsd.go +++ b/pkg/host/host_openbsd.go @@ -13,4 +13,5 @@ func isSupported(c *prog.Syscall, sandbox string) (bool, string) { func init() { checkFeature[FeatureCoverage] = unconditionallyEnabled + checkFeature[FeatureNetworkInjection] = unconditionallyEnabled } -- cgit mrf-deployment