[CRIU] [PATCH 4/5] inet: prevent dumping of sockets if they are not collected

Andrew Vagin avagin at parallels.com
Wed Mar 27 09:39:24 EDT 2013


On Wed, Mar 27, 2013 at 05:32:29PM +0400, Pavel Emelyanov wrote:
> On 03/27/2013 05:23 PM, Andrey Vagin wrote:
> > If inet sockets are not collected and a dumped task has one, crtools
> > should return an errror instead of dumping it as unconnected socket.
> > 
> > Signed-off-by: Andrey Vagin <avagin at openvz.org>
> 
> How about unix?

        sk = (struct unix_sk_desc *)lookup_socket(p->stat.st_ino, PF_UNIX);
        if (!sk)
                goto err;

> Anyway -- this is horrible, let's think about smth more generic.

I was waiting such answer;)
Please, skip this and previous one in this case.


More information about the CRIU mailing list