summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-07-13 14:16:24 -0400
committerGitHub <noreply@github.com>2018-07-13 14:16:24 -0400
commit14a6d51a8432fc0c3324fec02e8729d3032f2af2 (patch)
tree72ccd4dd21f53830368277b5b1e909f8d0ab3e68 /pkg
parent673465a7475f2c4ed6bfe06c481ecc99a2510c30 (diff)
parent6ffcb98a70b94636d57bef515d5e2fbd9efefa0b (diff)
downloadpodman-14a6d51a8432fc0c3324fec02e8729d3032f2af2.tar.gz
podman-14a6d51a8432fc0c3324fec02e8729d3032f2af2.tar.bz2
podman-14a6d51a8432fc0c3324fec02e8729d3032f2af2.zip
Merge pull request #1091 from giuseppe/rootless-unshare-mount-ns
rootless: unshare mount namespace
Diffstat (limited to 'pkg')
-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;