]> www.infradead.org Git - users/dwmw2/linux.git/commit
netfilter: xt_physdev: Fix spurious error message in physdev_mt_check
authorTodd Seidelmann <tseidelmann@linode.com>
Wed, 21 Aug 2019 15:47:53 +0000 (11:47 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Sep 2019 05:18:36 +0000 (07:18 +0200)
commit0dec70d3c24931cbc159c2c08ef1b7669e714c6d
treed48e95a1b4d877ada36099cad2ed0ceff583cfae
parente3813a30bd6fce930935634466f6c020dfcdf4a3
netfilter: xt_physdev: Fix spurious error message in physdev_mt_check

[ Upstream commit 3cf2f450fff304be9cf4868bf0df17f253bc5b1c ]

Simplify the check in physdev_mt_check() to emit an error message
only when passed an invalid chain (ie, NF_INET_LOCAL_OUT).
This avoids cluttering up the log with errors against valid rules.

For large/heavily modified rulesets, current behavior can quickly
overwhelm the ring buffer, because this function gets called on
every change, regardless of the rule that was changed.

Signed-off-by: Todd Seidelmann <tseidelmann@linode.com>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/xt_physdev.c