[CRIU] [PATCH] test: don't run cow01 in userns

Andrey Vagin avagin at openvz.org
Tue Mar 24 05:44:29 PDT 2015


/proc/pid/pagemap is protected by the global CAP_SYS_ADMIN, so
it can't be opened in a non-root userns.

00:34:48.260 Execute ns/user/static/cow01
...
00:34:48.260 12:37:03.951:     4: ERR: cow01.c:87: Unable to open child pagemap file /proc/5/pagemap (errno = 1 (Operation not permitted))

Reported-by: Mr Jenkins
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 test/zdtm.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/zdtm.sh b/test/zdtm.sh
index 577e456..9507268 100755
--- a/test/zdtm.sh
+++ b/test/zdtm.sh
@@ -264,6 +264,7 @@ generate_test_list()
 		ns/static/mntns_shared_bind
 		ns/static/mntns_shared_bind02
 		ns/static/mntns_root_bind
+		ns/static/cow01
 	"
 
 	# Add tests which can be executed in an user namespace
-- 
2.1.0



More information about the CRIU mailing list