Messages in this thread | | | Date | Mon, 2 Apr 2012 13:26:27 +0400 | From | Cyrill Gorcunov <> | Subject | Re: [PATCH] nextfd(2) |
| |
On Mon, Apr 02, 2012 at 12:38:25PM +0400, Konstantin Khlebnikov wrote: > Alan Cox wrote: > >>Can we add "pid" argument to be able to search next fd in other task? > >>Together with sys_kcmp() this will be very useful for checkpoint/restore. > > > >That would raise all sorts of security questions unless protected, plus > >its got races. If you want to do that and you have the rights you can do > >it via procfs anyway. > > Don't worry, I just asked. =) Seems like crtools dumps fd in the target-task context, > so the current version is suitable.
Kind of ;) At moment we drain fds from dumpee task context to our tool context and then dump them.
Cyrill
| |