diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-11-29 12:00:13 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-11-30 13:33:18 +0100 |
| commit | 0f3a5454d62026ed8a7e9de75c82cf3861038349 (patch) | |
| tree | 34366bd74c5547d30d5b5b2f367d69f446934e14 /pkg/mgrconfig/load.go | |
| parent | 1fd901159188a5e0c2b3559ae7ec7deff7c4e7a2 (diff) | |
pkg/mgrconfig: remove Syz prefix from fields
Everything in syzkaller is syz-something, it's pointless to add syz prefix
to everything and unnecessary increases clutter. Remove the prefix.
Also, rename ExecutorCmd in target to ExecutorBin to make it consistent
with mgrconfig and ExecprogBin/FuzzerBin.
Diffstat (limited to 'pkg/mgrconfig/load.go')
| -rw-r--r-- | pkg/mgrconfig/load.go | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/pkg/mgrconfig/load.go b/pkg/mgrconfig/load.go index d4756a0cd..14b98eb01 100644 --- a/pkg/mgrconfig/load.go +++ b/pkg/mgrconfig/load.go @@ -27,10 +27,10 @@ type Derived struct { TargetArch string TargetVMArch string - // Syzkaller binaries that we are going to use: - SyzFuzzerBin string - SyzExecprogBin string - SyzExecutorBin string + // Full paths to binaries we are going to use: + FuzzerBin string + ExecprogBin string + ExecutorBin string Syscalls []int } @@ -211,17 +211,17 @@ func (cfg *Config) completeBinaries() error { targetBin := func(name, arch string) string { return filepath.Join(cfg.Syzkaller, "bin", cfg.TargetOS+"_"+arch, name+exe) } - cfg.SyzFuzzerBin = targetBin("syz-fuzzer", cfg.TargetVMArch) - cfg.SyzExecprogBin = targetBin("syz-execprog", cfg.TargetVMArch) - cfg.SyzExecutorBin = targetBin("syz-executor", cfg.TargetArch) - if !osutil.IsExist(cfg.SyzFuzzerBin) { - return fmt.Errorf("bad config syzkaller param: can't find %v", cfg.SyzFuzzerBin) + cfg.FuzzerBin = targetBin("syz-fuzzer", cfg.TargetVMArch) + cfg.ExecprogBin = targetBin("syz-execprog", cfg.TargetVMArch) + cfg.ExecutorBin = targetBin("syz-executor", cfg.TargetArch) + if !osutil.IsExist(cfg.FuzzerBin) { + return fmt.Errorf("bad config syzkaller param: can't find %v", cfg.FuzzerBin) } - if !osutil.IsExist(cfg.SyzExecprogBin) { - return fmt.Errorf("bad config syzkaller param: can't find %v", cfg.SyzExecprogBin) + if !osutil.IsExist(cfg.ExecprogBin) { + return fmt.Errorf("bad config syzkaller param: can't find %v", cfg.ExecprogBin) } - if !osutil.IsExist(cfg.SyzExecutorBin) { - return fmt.Errorf("bad config syzkaller param: can't find %v", cfg.SyzExecutorBin) + if !osutil.IsExist(cfg.ExecutorBin) { + return fmt.Errorf("bad config syzkaller param: can't find %v", cfg.ExecutorBin) } return nil } |
