]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_conntrack: restrict runtime expect hashsize modifications
authorAlexey Dobriyan <adobriyan@gmail.com>
Mon, 8 Feb 2010 19:17:22 +0000 (11:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Feb 2010 19:17:22 +0000 (11:17 -0800)
commitb16d093dcff87ac80697888d0cf57903c5769e4e
tree5b83b77e6b06e1dc845199227734a54eb2d857d3
parent1652d091859f1ccc71ed9416bfa3258f107f3aeb
netfilter: nf_conntrack: restrict runtime expect hashsize modifications

Expectation hashtable size was simply glued to a variable with no code
to rehash expectations, so it was a bug to allow writing to it.
Make "expect_hashsize" readonly.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/nf_conntrack_expect.c