mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 13:58:34 +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:
committed by
Pavel Emelyanov
parent
fbbd1f566f
commit
5dc505c0ca
8
ipc_ns.c
8
ipc_ns.c
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user