lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <20100309141947.GE2783@psychotron.lab.eng.brq.redhat.com> Date: Tue, 9 Mar 2010 15:19:47 +0100 From: Jiri Pirko <jpirko@...hat.com> To: netdev@...r.kernel.org Cc: fubar@...ibm.com, bonding-devel@...ts.sourceforge.net, davem@...emloft.net, shemminger@...ux-foundation.org Subject: [net-next-2.6 PATCH 3/3] bridge: forbid slave devices to change it's type It's not desired for underlaying devices to change type. At the time, there is for example possible to have bond with changed type from Ethernet to Infiniband as a port of a bridge. This patch fixes this. Signed-off-by: Jiri Pirko <jpirko@...hat.com> --- net/bridge/br_notify.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/net/bridge/br_notify.c b/net/bridge/br_notify.c index 763a3ec..a68c692 100644 --- a/net/bridge/br_notify.c +++ b/net/bridge/br_notify.c @@ -82,6 +82,9 @@ static int br_device_event(struct notifier_block *unused, unsigned long event, v case NETDEV_UNREGISTER: br_del_if(br, dev); break; + + case NETDEV_TYPE_CHNG_START: + return NOTIFY_BAD; } /* Events that may cause spanning tree to refresh */ -- 1.6.6.1 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists