2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-29 13:28:27 +00:00

ipc: save local user and group id-s for ipc objects

5468  semctl(0, 1, IPC_SET, 0x7ffd25bcb590) = -1 EINVAL (Invalid argument)

Reported-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Andrew Vagin <avagin@openvz.org>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrew Vagin 2015-10-23 17:51:57 +03:00 committed by Pavel Emelyanov
parent 4e99a6b542
commit 8f0f75a6d6

View File

@ -47,10 +47,10 @@ static void fill_ipc_desc(int id, IpcDescEntry *desc, const struct ipc_perm *ipc
{ {
desc->id = id; desc->id = id;
desc->key = ipcp->KEY; desc->key = ipcp->KEY;
desc->uid = ipcp->uid; desc->uid = userns_uid(ipcp->uid);
desc->gid = ipcp->gid; desc->gid = userns_gid(ipcp->gid);
desc->cuid = ipcp->cuid; desc->cuid = userns_uid(ipcp->cuid);
desc->cgid = ipcp->cgid; desc->cgid = userns_gid(ipcp->cgid);
desc->mode = ipcp->mode; desc->mode = ipcp->mode;
} }