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)
commit1bc4e0136cb32282d7968e11cfabc40763fdb03c
tree1d46c4bf8ee592f1ba69761f0c93349959adabae
parentc2d9a4293ced88d7dad7c35c893a31f49f8b64f5
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