diff options
author | Sheng Yang <sheng@yasker.org> | 2016-01-13 17:26:13 -0800 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2016-01-20 01:38:38 -0800 |
commit | 20c08b362f4b0c41103fe9d75c61ca348d021441 (patch) | |
tree | 33ad8360a59321dbaf9a0b7d4e69f96d83644468 /drivers/target | |
parent | 21aaa23b0ebbd19334fa461370c03cbb076b3295 (diff) | |
download | linux-stable-20c08b362f4b0c41103fe9d75c61ca348d021441.tar.gz linux-stable-20c08b362f4b0c41103fe9d75c61ca348d021441.tar.bz2 linux-stable-20c08b362f4b0c41103fe9d75c61ca348d021441.zip |
target/user: Make sure netlink would reach all network namespaces
The current code only allow netlink to reach the initial network namespace,
which caused trouble for any client running inside container.
This patch would make sure TCMU netlink would work for all network
namespaces.
Signed-off-by: Sheng Yang <sheng@yasker.org>
Acked-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_user.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c index da187e635ea3..a84cd40ab964 100644 --- a/drivers/target/target_core_user.c +++ b/drivers/target/target_core_user.c @@ -152,6 +152,7 @@ static struct genl_family tcmu_genl_family = { .maxattr = TCMU_ATTR_MAX, .mcgrps = tcmu_mcgrps, .n_mcgrps = ARRAY_SIZE(tcmu_mcgrps), + .netnsok = true, }; static struct tcmu_cmd *tcmu_alloc_cmd(struct se_cmd *se_cmd) @@ -840,7 +841,7 @@ static int tcmu_netlink_event(enum tcmu_genl_cmd cmd, const char *name, int mino genlmsg_end(skb, msg_header); - ret = genlmsg_multicast(&tcmu_genl_family, skb, 0, + ret = genlmsg_multicast_allns(&tcmu_genl_family, skb, 0, TCMU_MCGRP_CONFIG, GFP_KERNEL); /* We don't care if no one is listening */ |