openbsd: enable packet injection

This commit is contained in:
Greg Steuck 2018-11-18 11:29:12 -08:00 committed by Dmitry Vyukov
parent 99721ceaab
commit 9bc2a903f0
3 changed files with 3 additions and 2 deletions

View File

@ -156,7 +156,7 @@ static void initialize_tun(int tun_id)
static long syz_emit_ethernet(long a0, long a1)
{
// syz_emit_ethernet(len len[packet], packet ptr[in, eth_packet])
// syz_emit_ethernet(len len[packet], packet ptr[in, array[int8]])
if (tunfd < 0)
return (uintptr_t)-1;

View File

@ -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" {

View File

@ -13,4 +13,5 @@ func isSupported(c *prog.Syscall, sandbox string) (bool, string) {
func init() {
checkFeature[FeatureCoverage] = unconditionallyEnabled
checkFeature[FeatureNetworkInjection] = unconditionallyEnabled
}