diff --git a/pkg/rootless/rootless_linux.c b/pkg/rootless/rootless_linux.c index d08c6c8754..465feeb57b 100644 --- a/pkg/rootless/rootless_linux.c +++ b/pkg/rootless/rootless_linux.c @@ -92,7 +92,7 @@ reexec_in_user_namespace(int ready) sprintf (uid, "%d", geteuid ()); - pid = syscall_clone (CLONE_NEWUSER|SIGCHLD, NULL); + pid = syscall_clone (CLONE_NEWUSER|CLONE_NEWNS|SIGCHLD, NULL); if (pid) return pid;