]> 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)
commit6d20adfad427524717129059610a23c9fa7a3af3
tree1d46c4bf8ee592f1ba69761f0c93349959adabae
parent93a56d1194cd49122feeba49203a1d17c3efeedb
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