[CRIU] [PATCH] zdtm: do not run cow0x tests in userns

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Fri Jan 27 06:16:10 PST 2017


Opening /proc/<pid>/pagemap in userns is only available since linux
v4.3 or later, after commit 1c90308e7a77 (pagemap: hide physical
addresses from non-privileged users). So those tests fail on older
kernels:
https://ci.openvz.org/job/CRIU/job/CRIU-virtuozzo/job/criu-dev/1402

Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
 test/zdtm/static/cow00.desc | 2 +-
 test/zdtm/static/cow01.desc | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/zdtm/static/cow00.desc b/test/zdtm/static/cow00.desc
index 0ce5a2d..654ae75 100644
--- a/test/zdtm/static/cow00.desc
+++ b/test/zdtm/static/cow00.desc
@@ -1,2 +1,2 @@
 # /proc/pid/pagemap doesn't show phys addr for unprivileged users
-{'flavor': 'ns h uns', 'flags': 'suid nolazy'}
+{'flavor': 'ns h', 'flags': 'suid nolazy'}
diff --git a/test/zdtm/static/cow01.desc b/test/zdtm/static/cow01.desc
index 46470f5..24a8142 100644
--- a/test/zdtm/static/cow01.desc
+++ b/test/zdtm/static/cow01.desc
@@ -1 +1 @@
-{'flavor': 'h ns uns', 'flags': 'suid nolazy'}
+{'flavor': 'h ns', 'flags': 'suid nolazy'}
-- 
2.9.3



More information about the CRIU mailing list