[CRIU] [PATCH] test: increase permissions for the "test" directory

Andrey Vagin avagin at openvz.org
Fri Nov 7 06:54:28 PST 2014


Restoring mount namespaces requires to create temporary directories
in a test root.

When tests execute in a new userns, they have non-zero gid and uid,
so we need to grant permissions for them.

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

diff --git a/test/zdtm.sh b/test/zdtm.sh
index 9a70805..f834447 100755
--- a/test/zdtm.sh
+++ b/test/zdtm.sh
@@ -471,6 +471,9 @@ start_test()
 	if [ -z "$USERNS" ]; then
 		unset ZDTM_USERNS
 	else
+		# we need to be able to create a temporary directory in a test
+		# root for restoring mount namespaces
+		chmod go+w .
 		export ZDTM_USERNS=1
 	fi
 
-- 
1.9.3



More information about the CRIU mailing list