aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common.h
diff options
context:
space:
mode:
authorKris Alder <kalder@google.com>2023-03-20 14:08:31 -0700
committerDmitry Vyukov <dvyukov@google.com>2023-03-21 09:21:15 +0100
commit03fb95387494de5b57bd8487026a556d24044179 (patch)
tree5811104340c6664a94c050e172f50042a1e59e86 /executor/common.h
parent7939252e4ddf50bbb9912069a40d32f6c83c4f8e (diff)
executor: use valid temporary dir on Android
The call to mkdtemp() will fail when given /data/data/syzkaller/syzkaller-XXXXXX, since /data/data/syzkaller/ doesn't exist. The correct temporary dir on Android is /data/local/tmp, which exists by default.
Diffstat (limited to 'executor/common.h')
-rw-r--r--executor/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/common.h b/executor/common.h
index fb7b04f4a..a47e6694e 100644
--- a/executor/common.h
+++ b/executor/common.h
@@ -220,7 +220,7 @@ static uint64 current_time_ms(void)
static void use_temporary_dir(void)
{
#if SYZ_SANDBOX_ANDROID
- char tmpdir_template[] = "/data/data/syzkaller/syzkaller.XXXXXX";
+ char tmpdir_template[] = "/data/local/tmp/syzkaller.XXXXXX";
#elif GOOS_fuchsia
char tmpdir_template[] = "/tmp/syzkaller.XXXXXX";
#else