hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/net/bridge/br_stp_if.c
....@@ -201,6 +201,9 @@
201201 {
202202 ASSERT_RTNL();
203203
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
+
204207 if (br_mrp_enabled(br)) {
205208 NL_SET_ERR_MSG_MOD(extack,
206209 "STP can't be enabled if MRP is already enabled");