From f3b81859c28273cec06286f8ea0d29bda575525b Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 23 Jan 2026 19:15:15 +0100 Subject: [PATCH] namespace-util: Fix logging in userns_enter_and_pin() --- src/basic/namespace-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/namespace-util.c b/src/basic/namespace-util.c index 555138c255..c3b84ea784 100644 --- a/src/basic/namespace-util.c +++ b/src/basic/namespace-util.c @@ -618,7 +618,7 @@ int userns_enter_and_pin(int userns_fd, PidRef *ret) { "(sd-pinuserns)", /* stdio_fds= */ NULL, (int[]) { pfd[1], userns_fd }, 2, - FORK_CLOSE_ALL_FDS|FORK_DEATHSIG_SIGKILL, + FORK_CLOSE_ALL_FDS|FORK_REOPEN_LOG|FORK_DEATHSIG_SIGKILL, &pidref); if (r < 0) return r;