]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: x_tables: enforce unique and ascending entry points
authorFlorian Westphal <fw@strlen.de>
Tue, 27 Feb 2018 18:42:30 +0000 (19:42 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 5 Mar 2018 22:15:43 +0000 (23:15 +0100)
commita02eaba933ce31ab0b7099962c6c2a0edc25abbe
tree5951c15ff0023a04646abd9026ee3d117f299119
parent4f60240ea7eb69e60db0bf864a5d631991adba41
netfilter: x_tables: enforce unique and ascending entry points

Harmless from kernel point of view, but iptables assumes that this is
true when decoding a ruleset.

iptables walks the dumped blob from kernel, and, for each entry that
creates a new chain it prints out rule/chain information.
Base chains (hook entry points) are thus only shown when they appear
in the rule blob.  One base chain that is referenced multiple times
in hook blob is then only printed once.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/x_tables.c