criu/test/zdtm
Kirill Tkhai b5225915df ns: Do not change net_ns in prepare_net_namespaces()
In next patches usernsd will need to create transport
socket in the same net_ns as other tasks do their
TRANSPORT_FD_OFF sockets.

Choose criu net_ns for that: this allows usernsd
to do not wait for creation of other net_ns, i.e.
to do not introduce new dependencies between tasks.

In case of (root_ns_mask & CLONE_NEWUSER) != 0
root_item's user_ns does not allow to restore criu net_ns,
so do prepare_net_namespaces() in sub-process to do not
lose criu net.

v3: Introduce __prepare_net_namespaces and execute it in cloned task.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2018-02-15 22:13:26 +03:00
..
lib zdtm: lib: add {read,write}_data helpers 2017-12-12 09:12:44 +03:00
static ns: Do not change net_ns in prepare_net_namespaces() 2018-02-15 22:13:26 +03:00
transition test: add test that verifies proper intraction between lazy-pages and THP 2017-09-16 12:30:22 +03:00
.gitignore test/zdtm: unify common code 2017-04-02 18:12:10 +03:00
Makefile test/zdtm/Makefile: simplify 2017-04-02 18:12:10 +03:00
Makefile.inc test/zdtm/Makefiles: disable built-in rules 2017-05-10 04:26:56 +03:00