From 6ffcb98a70b94636d57bef515d5e2fbd9efefa0b Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Fri, 13 Jul 2018 16:37:34 +0200 Subject: rootless: unshare mount namespace unshare the mount namespace as well when creating an user namespace so that we are the owner of the mount namespace and we can mount FUSE file systems on Linux 4.18. Tested on Fedora Rawhide: podman --storage-opt overlay.fuse_program=/usr/bin/fuse-overlayfs run alpine echo hello hello Signed-off-by: Giuseppe Scrivano --- pkg/rootless/rootless_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/rootless') 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; -- cgit v1.2.3-54-g00ecf