[CRIU] [PATCH] test: increase permissions for the "test" directory (v2)
Andrey Vagin
avagin at openvz.org
Fri Nov 7 10:30:06 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.
v2: add +rx as well
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..1eb8701 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+wxr .
export ZDTM_USERNS=1
fi
--
1.9.3
More information about the CRIU
mailing list