Messages in this thread | | | Date | Fri, 18 Nov 2011 15:30:55 -0800 | From | Tejun Heo <> | Subject | Re: [RFC][PATCH 0/3] fork: Add the ability to create tasks with given pids |
| |
Hello,
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.
-- tejun
| |