[v2,01/36] files: Fix not populated helper ids

Submitted by Kirill Tkhai on Feb. 3, 2017, 4:11 p.m.

Details

Message ID 148613830289.3612.8871399361952796077.stgit@localhost.localdomain
State New
Series "Nested user namespaces support"
Headers show

Commit Message

Kirill Tkhai Feb. 3, 2017, 4:11 p.m.
Every task and helper have ids populated, except this case.
Fix that.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 criu/files-reg.c |    1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/criu/files-reg.c b/criu/files-reg.c
index 81982e052..e8d74a691 100644
--- a/criu/files-reg.c
+++ b/criu/files-reg.c
@@ -394,6 +394,7 @@  static int open_remap_dead_process(struct reg_file_info *rfi,
 	helper->pgid = root_item->pgid;
 	helper->pid->ns[0].virt = rfe->remap_id;
 	helper->parent = root_item;
+	helper->ids = root_item->ids;
 	list_add_tail(&helper->sibling, &root_item->children);
 
 	pr_info("Added a helper for restoring /proc/%d\n", helper->pid->ns[0].virt);