2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00

net: Basic netns dump/restore skeleton

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2012-08-02 08:06:29 +04:00
parent 2d56d1b056
commit 0a827aa96c
6 changed files with 46 additions and 0 deletions

View File

@@ -38,6 +38,8 @@ static int parse_ns_string(const char *ptr)
opts.namespaces_flags |= CLONE_NEWNS;
else if (!strncmp(ptr, "pid", 3))
opts.namespaces_flags |= CLONE_NEWPID;
else if (!strncmp(ptr, "net", 3))
opts.namespaces_flags |= CLONE_NEWNET;
else
goto bad_ns;
ptr += 4;