[lkml]   [2011]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC][PATCH 0/3] fork: Add the ability to create tasks with given pids

    On Thu, Nov 17, 2011 at 08:01:03PM +0400, Pavel Emelyanov wrote:
    > > Yes, personally I'd prefer /proc/set_last_pid (or something similar) which
    > > simply writes to pid_ns->last_pid. Perhaps it is less convenient from the
    > > user-space pov (serialization, security) but it is much simpler.
    > Yes, this is also possible. I have a working prototype of /proc/sys/kernel/ns_last_pid
    > with the security issue solved, but setting sysctl then cloning seems more obfuscating
    > to me than just passing an array of pids to clone.

    Do you mind sharing the patch? It doesn't have to be perfect. I'm
    just curious how it looks. IMHO the suggested pid array passing is
    good enough and not too intrusive but, if there's something simpler
    from kernel side, given that this is a very specialized interface, I
    think we definitely need to consider that.

    Thank you.


     \ /
      Last update: 2011-11-19 00:33    [W:0.023 / U:47.724 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site