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 f2684f75f..0c6b86161 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;