]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: Only allow sane values in nf_register_net_hook
authorAaron Conole <aconole@bytheb.org>
Wed, 21 Sep 2016 15:35:05 +0000 (11:35 -0400)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 24 Sep 2016 19:30:19 +0000 (21:30 +0200)
commit9675c5141c09f0125e97c161922fd566c70e75b8
tree6386a7de4e22bb333ad4bbb0fa7dc92cbc941aa4
parent90cced42f4fba700a8495e6b5b9a573f06cd7d8a
netfilter: Only allow sane values in nf_register_net_hook

This commit adds an upfront check for sane values to be passed when
registering a netfilter hook.  This will be used in a future patch for a
simplified hook list traversal.

Signed-off-by: Aaron Conole <aconole@bytheb.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/core.c