Re: [PATCH iptables] iptables-test: add -N option to exercise netns removal path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 19, 2018 at 11:04:42AM +0200, Phil Sutter wrote:
> Hi,
> 
> On Thu, Oct 18, 2018 at 08:33:07PM +0200, Pablo Neira Ayuso wrote:
> [...]
> > @@ -108,8 +111,15 @@ def run_test(iptables, rule, rule_save, res, filename, lineno):
> >              command = IPTABLES_SAVE
> >          elif splitted[0] == IP6TABLES:
> >              command = IP6TABLES_SAVE
> > +
> > +    if netns:
> > +            path = "/sbin/ip"
> > +            command = "netns exec ____vm-iptable-test " + EXECUTEABLE + " " + command
> > +    else:
> > +            path = os.path.abspath(os.path.curdir) + "/iptables/" + EXECUTEABLE
> > +
> 
> In netns case, doesn't this lead to calling xtables-*-multi from $PATH
> instead of the local one we want to test?

Hm, right, will fix this.



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux