Commit 7fab1b23 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

kernel: Update clone-with-pid patch description

Signed-off-by: 's avatarPavel Emelyanov <xemul@openvz.org>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
parent c84be6af
Allow processes to be created with specified pid From: Pavel Emelyanov <xemul@openvz.org>
Subject: [PATCH] Allow processes to be created with specified pid
We will need it to restore processes so they would not When restoring a task (or a set of tasks) we need to recreate them with
even notice that they were being checkpointed. exactly the same pid as they had before. Thus we need the ability to create
a task with specified pid.
The proposal is to reuse the already free CLONE_STOPPED clone flag.
About the security implication - this can create some problems with pids
wraparound and similar, so this approach can be restricted with the "don't
allow for CLONE_CHILD_USEPID when the current pid namespace has ever done
real pid allocation". This will work perfectly for checkpoint-restore and
will not give anyone chances for screwing pids up on a living system.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
--- ---
......
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