Commit 5057dc5e authored by Pavel Emelyanov's avatar Pavel Emelyanov

cg: Add comment why cgroup ns flag is not passed to clone

Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent dae14ddf
......@@ -1208,6 +1208,10 @@ static inline int fork_with_pid(struct pstree_item *item)
*
* Here is an idea -- unhare net namespace in callee instead.
*/
/*
* The cgroup namespace is also unshared explicitly in the
* move_in_cgroup(), so drop this flag here as well.
*/
ret = clone(restore_task_with_children, ca.stack_ptr,
(ca.clone_flags & (~CLONE_NEWNET | ~CLONE_NEWCGROUP)) | SIGCHLD, &ca);
......
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