lkml.org 
[lkml]   [2011]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    Subject[PATCH 0/3] Introduce the cloning with pids functionality
    When restoring a task (or a set of tasks) we need to recreate them 
    with exactly the same pid(s) 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, introduce the new one
    called CLONE_CHILD_USEPIDS and point to the desired pids with the
    child_tidptr.

    There are two cnages from the previous set doing the same.

    1. The child_tidptr points to an array of pids for current namespace
    and its ancestors. When 0 is met in this array the pid number for
    the corresponding namespace is generated, rather than set.

    2. For security reasons after a regular clone/fork is done in a namespace
    further cloning with predefined pid is not allowed.

    Signed-off-by: Pavel Emelyanov <xemul@parallels.com>


    \
     
     \ /
      Last update: 2011-11-10 18:17    [W:0.022 / U:29.428 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site