Skip to content

Commit 09e91db

Browse files
TaeheeYoodavem330
authored andcommitted
hsr: set .netnsok flag
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: f421436 ("net/hsr: Add support for the High-availability Seamless Redundancy protocol (HSRv0)") Signed-off-by: Taehee Yoo <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ca19c70 commit 09e91db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/hsr/hsr_netlink.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ static struct genl_family hsr_genl_family __ro_after_init = {
470470
.version = 1,
471471
.maxattr = HSR_A_MAX,
472472
.policy = hsr_genl_policy,
473+
.netnsok = true,
473474
.module = THIS_MODULE,
474475
.ops = hsr_ops,
475476
.n_ops = ARRAY_SIZE(hsr_ops),

0 commit comments

Comments
 (0)