criu/test
Pavel Tikhomirov 01b8d40ced zdtm/mnt_root_ext: don't allow propagation from test mntns to criu mntns
This test specifically wants to create external bind-mount of "/" from
criu mntns to test mntns, and it wants "/" in criu mntns to be a shared
mount so that "external" mount in the test mntns is it's slave. This is
to triger specific dirname() resolution which happens only when sharing
restore is involved for external mounts, and only if rootfs is involved.

But initially I missed that when we create external mount in test's
temporary mntns it creates a propagation in criu mntns on top of root
mount. This mount may influence other tests restore as child mount in
root mount converts to locked child mount in criu service mntns (for uns
flavour) and when criu would restore root container mount it would fail
with EINVAL on non recursive bind with locked children.

To fix this mess we just need to prohibit propagating from tests
temporary mntns to criu mntns by making mounts slave.

Fixes: #1941

Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
2023-04-15 21:17:21 -07:00
..
compel Run 'make indent' on header files 2021-09-03 10:31:00 -07:00
exhaustive Fix some codespell warnings 2022-04-28 17:53:52 -07:00
inhfd vim: remove wrong 8-space tabs indent from python files 2021-09-03 10:31:00 -07:00
javaTests Fix some codespell warnings 2022-04-28 17:53:52 -07:00
jenkins Revert "ci: skip new hugetlb maps09/maps10 tests for pre-dump" 2023-04-15 21:17:21 -07:00
others Add --skip-file-rwx-check opt test 2023-04-15 21:17:21 -07:00
pki test: create new tls certificates 2021-09-03 10:31:00 -07:00
zdtm zdtm/mnt_root_ext: don't allow propagation from test mntns to criu mntns 2023-04-15 21:17:21 -07:00
.gitignore zdtm: Add javaTests output to .gitignore 2021-09-03 10:31:00 -07:00
abrt.sh test/abrt: skip core dumps from the seccomp_filter test 2019-04-20 20:25:26 -07:00
check_actions.py test/other: Resolve Py3 compatibility issues 2019-09-07 15:59:56 +03:00
crit-recode.py vim: remove wrong 8-space tabs indent from python files 2021-09-03 10:31:00 -07:00
empty-netns-prep.sh test: don't use nsenter in tests 2017-05-19 09:17:20 +03:00
groups.desc zdtm.py: Generator of groups of tests 2015-12-08 14:54:41 +03:00
inhfd.desc zdtm.py: Add inhfd tests for --inherit-fd option 2015-10-19 12:42:01 +03:00
Makefile Add --skip-file-rwx-check opt test 2023-04-15 21:17:21 -07:00
pycriu Adapt zdtm for python3 compatibility 2018-07-09 18:25:16 +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 test: Get rid of live directory 2016-02-20 13:40:52 +03:00
zdtm.py zdtm: make root mount private in criu mntns 2023-04-15 21:17:21 -07:00
zdtm_ct.c zdtm: zdtm_ct fix compilation error with strict-prototypes on 2022-04-28 17:53:52 -07:00
zdtm_mount_cgroups zdtm: use unique holder for cgroups 2022-04-28 17:53:52 -07:00
zdtm_umount_cgroups zdtm: use unique holder for cgroups 2022-04-28 17:53:52 -07:00