Commit d1f8d023 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

criu: pie -- Zap parasite_dump_creds::gids

Fixes #95
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 2253c430
......@@ -250,6 +250,16 @@ static int dump_creds(struct parasite_dump_creds *args)
args->uids[3] = sys_setfsuid(-1L);
/*
* FIXME In https://github.com/xemul/criu/issues/95 it is
* been reported that only low 16 bits are set upon syscall
* on ARMv7.
*
* We may rather need implement builtin-memset and clear the
* whole memory needed here.
*/
args->gids[0] = args->gids[1] = args->gids[2] = args->gids[3] = 0;
ret = sys_getresgid(&args->gids[0], &args->gids[1], &args->gids[2]);
if (ret) {
pr_err("Unable to get uids: %d\n", ret);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment