netfilter: x_tables: add compat version of xt_check_entry_offsets

commit fc1221b3a1 upstream.

32bit rulesets have different layout and alignment requirements, so once
more integrity checks get added to xt_check_entry_offsets it will reject
well-formed 32bit rulesets.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Florian Westphal 2016-04-01 14:17:26 +02:00 • committed by Greg Kroah-Hartman
commit 2985d199e7
5 changed files with 31 additions and 3 deletions