mirror of https://github.com/containers/podman.git
Merge pull request #1091 from giuseppe/rootless-unshare-mount-ns
rootless: unshare mount namespace
This commit is contained in:
commit
14a6d51a84
|
@ -92,7 +92,7 @@ reexec_in_user_namespace(int ready)
|
||||||
|
|
||||||
sprintf (uid, "%d", geteuid ());
|
sprintf (uid, "%d", geteuid ());
|
||||||
|
|
||||||
pid = syscall_clone (CLONE_NEWUSER|SIGCHLD, NULL);
|
pid = syscall_clone (CLONE_NEWUSER|CLONE_NEWNS|SIGCHLD, NULL);
|
||||||
if (pid)
|
if (pid)
|
||||||
return pid;
|
return pid;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue