criu/test
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
..
compel compel/tests: fix tests on !x86 archs 2017-03-14 21:03:30 +03:00
inhfd unix: Test the --external instead of --ext-unix-sk 2016-11-03 18:14:16 +03:00
jenkins test: jenkins -- Add huge shmid fault into the tests 2017-11-23 20:23:13 +03:00
others python: specify python2 as .py interpreter 2017-04-17 18:35:58 +03:00
zdtm ns: Do not change net_ns in prepare_net_namespaces() 2018-02-15 22:13:26 +03:00
.gitignore gitignores: ignore some more generated files 2017-03-15 00:05:55 +03:00
abrt.sh travis: catch core dump files in error cases 2016-09-06 19:31:20 +03:00
check_actions.py python: specify python2 as .py interpreter 2017-04-17 18:35:58 +03:00
crit-recode.py test/crit-recode: skip images with zero size 2016-06-28 13:12:26 +03:00
criu.py zdtm.py: Add minimal support for CRIU RPC testing 2016-09-06 19:31:21 +03:00
empty-netns-prep.sh test: don't use nsenter in tests 2017-05-19 09:17:20 +03:00
groups.desc
inhfd.desc
Makefile Update Makefile 2017-06-14 09:45:44 +03:00
rpc_pb2.py python lib: rename rpc.py to rpc_pb2.py 2016-10-10 12:49:28 +03:00
show_action.sh test: Check action scripts to work as we expect 2016-05-06 14:39:25 +03:00
umount2.c zdtm: add a program to umount a test root 2016-09-26 15:42:40 +03:00
zdtm.desc
zdtm.py zdtm: grep errors from page-server.log and lazy-pages.log 2017-11-23 20:23:23 +03:00
zdtm_ct.c test: don't do MS_REC|MS_PRIVATE for host mounts 2016-09-06 19:31:20 +03:00
zdtm_mount_cgroups