diff options
| author | Stefan Wiehler <me@sephalon.net> | 2024-12-02 16:00:37 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-12-17 11:13:44 +0000 |
| commit | bc1a1b50f942408a9139887b914f745d9fa02adc (patch) | |
| tree | 1c41777ce9ba26e8efe80e3fc6d717bde44be707 /executor | |
| parent | f93b2b552ce5fe589b450ff74ca1b459cdbc71a8 (diff) | |
all: add support for binaries shipped with target
In some build environments (notably Yocto), syzkaller host and target
binaries end up in separate packages for each built architecture, which
are then shipped with the respective image/SDK.
Add the "Execprog/ExecutorBinOnTarget" and "StraceBinOnTarget" options
to the manager config, which when set expects the respective binaries to
be shipped with the target image and does not attempt to copy them from
the host.
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/subprocess.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/executor/subprocess.h b/executor/subprocess.h index 5e638c1f5..d2b732725 100644 --- a/executor/subprocess.h +++ b/executor/subprocess.h @@ -56,9 +56,9 @@ public: "GLIBC_TUNABLES=glibc.pthread.rseq=0", nullptr}; - if (posix_spawn(&pid_, argv[0], &actions, &attr, - const_cast<char**>(argv), const_cast<char**>(child_envp))) - fail("posix_spawn failed"); + if (posix_spawnp(&pid_, argv[0], &actions, &attr, + const_cast<char**>(argv), const_cast<char**>(child_envp))) + fail("posix_spawnp failed"); if (posix_spawn_file_actions_destroy(&actions)) fail("posix_spawn_file_actions_destroy failed"); |
