]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_masq: register/unregister notifiers on module init/exit
authorArturo Borrero <arturo.borrero.glez@gmail.com>
Fri, 3 Oct 2014 12:13:36 +0000 (14:13 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 3 Oct 2014 12:24:35 +0000 (14:24 +0200)
commit6af793fb6104d24e7407c01528c578ad6f701a5e
tree6c5c1a76fd427ae17e4fe9578765ff95b67d7e8e
parentd3c87e13df08f2ba6f089c06b8ec7bec03d10664
netfilter: nft_masq: register/unregister notifiers on module init/exit

We have to register the notifiers in the masquerade expression from
the the module _init and _exit path.

This fixes crashes when removing the masquerade rule with no
ipt_MASQUERADE support in place (which was masking the problem).

Fixes: 79b258f ("netfilter: nf_tables: add new nft_masq expression")
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/nft_masq_ipv4.c
net/ipv6/netfilter/nft_masq_ipv6.c