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]

 



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?

Cheers, Phil



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

  Powered by Linux