]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_log: check the validity of log level
authorLiping Zhang <liping.zhang@spreadtrum.com>
Mon, 18 Jul 2016 12:44:16 +0000 (20:44 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 21 Jul 2016 00:32:33 +0000 (02:32 +0200)
commit8d56e0e3db4024cb881bf880cbf06add9149eaa2
tree1d46c4bf8ee592f1ba69761f0c93349959adabae
parent306a66456e5b85f615c76ca04e73136d64b55201
netfilter: nft_log: check the validity of log level

User can specify the log level larger than 7(debug level) via
nfnetlink, this is invalid. So in this case, we should report
EINVAL to the userspace.

Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_log.c