[CRIU] [PATCH] test: increase permissions for the "test" directory
Pavel Emelyanov
xemul at parallels.com
Fri Nov 7 08:59:12 PST 2014
On 11/07/2014 06:54 PM, Andrey Vagin wrote:
> 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 .
Do we need the +x as well?
> export ZDTM_USERNS=1
> fi
>
>
More information about the CRIU
mailing list