Commit 9195b317 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by Jens Axboe

nbd: allow genl access outside init_net

NBD doesn't have much to do with networking, allow users outside
init_net to access the family.
Reviewed-by: default avatarJosef Bacik <josef@toxicpanda.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Reviewed-by: default avatarChaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20230224021301.1630703-1-kuba@kernel.orgSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent eeac8ede
...@@ -2325,6 +2325,7 @@ static struct genl_family nbd_genl_family __ro_after_init = { ...@@ -2325,6 +2325,7 @@ static struct genl_family nbd_genl_family __ro_after_init = {
.n_small_ops = ARRAY_SIZE(nbd_connect_genl_ops), .n_small_ops = ARRAY_SIZE(nbd_connect_genl_ops),
.resv_start_op = NBD_CMD_STATUS + 1, .resv_start_op = NBD_CMD_STATUS + 1,
.maxattr = NBD_ATTR_MAX, .maxattr = NBD_ATTR_MAX,
.netnsok = 1,
.policy = nbd_attr_policy, .policy = nbd_attr_policy,
.mcgrps = nbd_mcast_grps, .mcgrps = nbd_mcast_grps,
.n_mcgrps = ARRAY_SIZE(nbd_mcast_grps), .n_mcgrps = ARRAY_SIZE(nbd_mcast_grps),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment