]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
namespace-util: Fix logging in userns_enter_and_pin()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 23 Jan 2026 18:15:15 +0000 (19:15 +0100)
committerDaan De Meyer <daan@amutable.com>
Thu, 5 Feb 2026 13:09:03 +0000 (14:09 +0100)
src/basic/namespace-util.c

index 555138c2559dd03c9d31d5db6d20a3983b8fac76..c3b84ea7840d151c155f61526181528eaead6b6a 100644 (file)
@@ -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;