]> www.infradead.org Git - users/jedix/linux-maple.git/commit
netfilter: nft_compat: explicitly reject ERROR and standard target
authorFlorian Westphal <fw@strlen.de>
Fri, 6 Jul 2018 18:06:05 +0000 (20:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:09:15 +0000 (13:09 +0200)
commita76e62b50dc0fb869a5371448395700eb3d31bd3
treedfdd336be423443d1f9ff6d859f3aed846e62a3f
parentafd13311ee014d52b2d1ca9c452a157b836d987f
netfilter: nft_compat: explicitly reject ERROR and standard target

[ Upstream commit 21d5e078192d244df3d6049f9464fff2f72cfd68 ]

iptables-nft never requests these, but make this explicitly illegal.
If it were quested, kernel could oops as ->eval is NULL, furthermore,
the builtin targets have no owning module so its possible to rmmod
eb/ip/ip6_tables module even if they would be loaded.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/nft_compat.c