diff options
| author | Andrei Vagin <avagin@google.com> | 2024-07-03 09:40:45 -0700 |
|---|---|---|
| committer | Andrei Vagin <avagin@google.com> | 2024-07-03 20:37:44 +0000 |
| commit | 3f2748a3a15aac63efeb991dee40bfc870ae581d (patch) | |
| tree | 3b3bea1d2cd6c6614026cbbb06c8eb63de9513c6 /executor/common_linux.h | |
| parent | f76a75f3903f810c51762a09baeceff9ff6d4af1 (diff) | |
executor: set `source` for the proc mount
mount() in gVisor returns EFAULT if source is NULL. It is a gVisor issue
and we will fix it. Let's explicitly sets a string source for the proc
mount to unblock gVisor jobs. The source string will additionally be
useful for troubleshooting mount-related problems in the future, because
it is shown in /prod/pid/mountinfo.
Signed-off-by: Andrei Vagin <avagin@google.com>
Diffstat (limited to 'executor/common_linux.h')
| -rw-r--r-- | executor/common_linux.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h index da27f1075..336853e4f 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -3915,7 +3915,7 @@ static void sandbox_common_mount_tmpfs(void) fail("mount(dev) failed"); if (mkdir("./syz-tmp/newroot/proc", 0700)) fail("mkdir failed"); - if (mount(NULL, "./syz-tmp/newroot/proc", "proc", 0, NULL)) + if (mount("syz-proc", "./syz-tmp/newroot/proc", "proc", 0, NULL)) fail("mount(proc) failed"); if (mkdir("./syz-tmp/newroot/selinux", 0700)) fail("mkdir failed"); |
