]> git.baikalelectronics.ru Git - kernel.git/commit
hsr: set .netnsok flag
authorTaehee Yoo <ap420073@gmail.com>
Fri, 13 Mar 2020 06:50:33 +0000 (06:50 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2020 09:01:49 +0000 (11:01 +0200)
commitbda001729e11f8aba447432b79e6d529d88d1a26
tree29b20bfca376175f80144f838b1da9a9f1bd1aef
parent524a9db0f27cf6621a99e8d13337ce87d0a7a5d3
hsr: set .netnsok flag

[ Upstream commit 6816238048138ea95e7a25c7706881ec46e2772e ]

The hsr module has been supporting the list and status command.
(HSR_C_GET_NODE_LIST and HSR_C_GET_NODE_STATUS)
These commands send node information to the user-space via generic netlink.
But, in the non-init_net namespace, these commands are not allowed
because .netnsok flag is false.
So, there is no way to get node information in the non-init_net namespace.

Fixes: f8baa9c29c38 ("net/hsr: Add support for the High-availability Seamless Redundancy protocol (HSRv0)")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/hsr/hsr_netlink.c