]> git.baikalelectronics.ru Git - kernel.git/commit
netns: filter out uevent not belonging to init_net
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Wed, 26 Nov 2008 00:46:37 +0000 (16:46 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2008 00:46:37 +0000 (16:46 -0800)
commit7875fe8e705f88a9fe6e78034ead2ce1272337bf
tree93053a60197f03f66a7089fbf88f64ee93a955b8
parentc54255cf8bb2a6b8cec9be642a1c7c1b27bee16e
netns: filter out uevent not belonging to init_net

This patch will filter out the uevent not related to the init_net.
Without this patch if a network device is created in a network
namespace with the same name as one network device belonging to the
initial network namespace (eg. eth0), when the network namespace
will die and the network device will be destroyed, an event will
be sent and catched by the udevd daemon. That will result to have
the real network device to be shutdown because the udevd/uevent are
not namespace aware.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net-sysfs.c