[Devel] [PATCH 3/3] net: do iptables restore in ve0

Cyrill Gorcunov gorcunov at virtuozzo.com
Mon Jul 24 18:38:15 MSK 2017


On Mon, Jul 24, 2017 at 08:34:52AM -0700, Andrei Vagin wrote:
> >  
> > -static int iptables_tool_restore(char *def_cmd, int fdin)
> > +static int __iptables_tool_restore(char *def_cmd, int fdin)
> >  {
> > +	if (join_ve(root_item->pid->real, false))
> 
> Do you switch here into VE0? Could you add a comment? It is not obvious
> that root_item in VE0 at this moment.

root_item is NOT in ve0 at this moment, the @false argument points
to enter the ve0.

int join_ve(pid_t pid, bool veX)


More information about the Devel mailing list