kernel/net/bridge/br_stp_if.c
.. .. @@ -201,6 +201,9 @@ 201 201 { 202 202 ASSERT_RTNL(); 203 203 204 + if (!net_eq(dev_net(br->dev), &init_net))205 + NL_SET_ERR_MSG_MOD(extack, "STP does not work in non-root netns");206 +204 207 if (br_mrp_enabled(br)) { 205 208 NL_SET_ERR_MSG_MOD(extack, 206 209 "STP can't be enabled if MRP is already enabled");