diff options
author | Pavel Tikhomirov <ptikhomirov@virtuozzo.com> | 2022-07-26 13:20:58 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2022-08-04 04:54:52 +0300 |
commit | 973b4b631577e896f07dc7126e5cdc0af27515e5 (patch) | |
tree | 80828039654dfcb9ae99b166f8af1356fb7c8b02 /test | |
parent | e15690ba190ddd48074588378034a83015dd97c7 (diff) |
zdtm: make root mount private in criu mntns
If root mount in criu mntns is slave, it would be slave of host mount
where criu is stored, so if someone mounts something in subdir of
{criu-dir}/test/ on host while tests are running this mount can
influence the test as it appears on top of root mount in criu mntns.
1) With mount-compat this mount can get into restored test mntns, which
means wrong restore, as this mount was not there on dump.
2) With mount-v2 this mount would just fail container restore, as root
container mount is mounted non-recursively to protect from unexpected
mounts appear after restore.
Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
Diffstat (limited to 'test')
-rwxr-xr-x | test/zdtm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/zdtm.py b/test/zdtm.py index d264c4878..aefcb36a4 100755 --- a/test/zdtm.py +++ b/test/zdtm.py @@ -267,7 +267,7 @@ class ns_flavor: def init(self, l_bins, x_bins): subprocess.check_call( - ["mount", "--make-slave", "--bind", ".", self.root]) + ["mount", "--make-private", "--bind", ".", self.root]) self.root_mounted = True if not os.access(self.root + "/.constructed", os.F_OK): |