summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkg/rootless/rootless_linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/rootless/rootless_linux.c b/pkg/rootless/rootless_linux.c
index d08c6c875..465feeb57 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;