netfilter: decnet: only register hooks in init namespace
authorFlorian Westphal <fw@strlen.de>
Wed, 19 Apr 2017 22:42:07 +0000 (00:42 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 26 Apr 2017 07:30:21 +0000 (09:30 +0200)
commit1a0ed0ad4812a59a19f3bdb237601389214d1ed1
treea2ff2330fa90000236eccd29f5a83dfc0c5f10e1
parentefe41606184ef33efde1d708eaf7d0fad9e06694
netfilter: decnet: only register hooks in init namespace

looks like decnet isn't namespacified in first place, so restrict hook
registration to the initial namespace.

Prepares for eventual removal of legacy nf_register_hook() api.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/decnet/netfilter/dn_rtmsg.c