2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

ns: Add ability to save original ns and restoring it back while switcing

This will be required for parasite transport socket creation -- it will
have to be created in a net ns we're putting parasite in and then we'll
have to restore it back to original to go on dumping.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2012-08-02 07:55:05 +04:00
parent 9eda83b74a
commit 2d56d1b056
4 changed files with 37 additions and 7 deletions

View File

@@ -456,7 +456,7 @@ int dump_ipc_ns(int ns_pid, const struct cr_fdset *fdset)
{
int ret;
ret = switch_ns(ns_pid, CLONE_NEWIPC, "ipc");
ret = switch_ns(ns_pid, CLONE_NEWIPC, "ipc", NULL);
if (ret < 0)
return ret;