From 551737f1076a910f809cc27ac629c587bc84fc2d Mon Sep 17 00:00:00 2001 From: juanPabloMiceli <48705702+juanPabloMiceli@users.noreply.github.com> Date: Thu, 19 Jan 2023 15:59:14 -0500 Subject: vm/starnix: add support for fuzzing starnix (#3624) This commit adds a new VM for fuzzing starnix. The VM will boot a fuchsia image using the `ffx` tool and will connect to an adb server inside it. Fuzzing will be done using HostFuzzer mode due to some features not being implemented yet in starnix. Once this is possible, fuzzing will be performed without HostFuzzer mode. Co-authored-by: Juampi Miceli --- pkg/report/report.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkg/report') diff --git a/pkg/report/report.go b/pkg/report/report.go index 8a710e062..7dd9714b3 100644 --- a/pkg/report/report.go +++ b/pkg/report/report.go @@ -101,7 +101,7 @@ func (t Type) String() string { // NewReporter creates reporter for the specified OS/Type. func NewReporter(cfg *mgrconfig.Config) (*Reporter, error) { typ := cfg.TargetOS - if cfg.Type == "gvisor" { + if cfg.Type == "gvisor" || cfg.Type == "starnix" { typ = cfg.Type } ctor := ctors[typ] @@ -151,6 +151,7 @@ const ( var ctors = map[string]fn{ targets.Akaros: ctorAkaros, targets.Linux: ctorLinux, + "starnix": ctorFuchsia, "gvisor": ctorGvisor, targets.FreeBSD: ctorFreebsd, targets.Darwin: ctorDarwin, -- cgit mrf-deployment