From 6d197301fe4a048a54f3203599963947b6563bd9 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 18 Sep 2024 17:38:11 +0200 Subject: executor: fix mounting of binfmt_misc --- executor/common_linux.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'executor/common_linux.h') diff --git a/executor/common_linux.h b/executor/common_linux.h index 9e7d9717d..7356499de 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -5024,7 +5024,8 @@ static void check_leaks(void) static const char* setup_binfmt_misc() { - if (mount(0, "/proc/sys/fs/binfmt_misc", "binfmt_misc", 0, 0)) { + // EBUSY means it's already mounted here. + if (mount(0, "/proc/sys/fs/binfmt_misc", "binfmt_misc", 0, 0) && errno != EBUSY) { debug("mount(binfmt_misc) failed: %d\n", errno); return NULL; } -- cgit mrf-deployment