]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: x_tables: check standard verdicts in core
authorFlorian Westphal <fw@strlen.de>
Tue, 27 Feb 2018 18:42:27 +0000 (19:42 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 5 Mar 2018 22:15:43 +0000 (23:15 +0100)
commit1b916b7660f9efb68040f8934abc53c04ec6f696
treebce69f8724500e0e66458000c1a6eb732d64a4c4
parentef30a14f762e426f161f12311ba3a71b744129d9
netfilter: x_tables: check standard verdicts in core

Userspace must provide a valid verdict to the standard target.

The verdict can be either a jump (signed int > 0), or a return code.

Allowed return codes are either RETURN (pop from stack), NF_ACCEPT, DROP
and QUEUE (latter is allowed for legacy reasons).

Jump offsets (verdict > 0) are checked in more detail later on when
loop-detection is performed.

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