diff options
| author | Andrey Artemiev <artemiev@google.com> | 2022-08-06 05:17:33 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-06 14:17:33 +0200 |
| commit | 88e3a1226bc591d81c1fb98e83cb63cd4f341c6e (patch) | |
| tree | 323b7fa492a8d9698e432c1d3bd4514771fc3252 /executor/executor.cc | |
| parent | e853abd9a2542fcccb8e1a23eb8ae475500ecaf9 (diff) | |
pkg/csource, pkg/instance, pkg/ipc, pkg/mgrconfig, tools/syz-prog2c, syz-manager: introduce a new setting 'sandbox_arg' (#3263)
Diffstat (limited to 'executor/executor.cc')
| -rw-r--r-- | executor/executor.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/executor/executor.cc b/executor/executor.cc index 392c63a32..3c76738d2 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -300,6 +300,7 @@ struct handshake_req { uint64 magic; uint64 flags; // env flags uint64 pid; + uint64 sandbox_arg; }; struct handshake_reply { @@ -415,7 +416,7 @@ static void setup_features(char** enable, int n); #include "test.h" #if SYZ_HAVE_SANDBOX_ANDROID -static int sandbox_arg = 0; +static uint64 sandbox_arg = 0; #endif int main(int argc, char** argv) @@ -631,6 +632,9 @@ void receive_handshake() failmsg("handshake read failed", "read=%d", n); if (req.magic != kInMagic) failmsg("bad handshake magic", "magic=0x%llx", req.magic); +#if SYZ_HAVE_SANDBOX_ANDROID + sandbox_arg = req.sandbox_arg; +#endif parse_env_flags(req.flags); procid = req.pid; } |
