[CRIU] [PATCH] test: don't run cow01 in userns
Pavel Emelyanov
xemul at parallels.com
Tue Mar 24 05:46:35 PDT 2015
On 03/24/2015 03:44 PM, Andrey Vagin wrote:
> /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
Maybe it's better to just move this test into "single run only" list
to exclude it from ns/ at all?
Thanks,
Pavel
More information about the CRIU
mailing list