Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPavel Tikhomirov <ptikhomirov@virtuozzo.com>2022-07-26 13:20:58 +0300
committerAndrei Vagin <avagin@gmail.com>2022-08-04 04:54:52 +0300
commit973b4b631577e896f07dc7126e5cdc0af27515e5 (patch)
tree80828039654dfcb9ae99b166f8af1356fb7c8b02 /test
parente15690ba190ddd48074588378034a83015dd97c7 (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-xtest/zdtm.py2
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):