Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753727AbYKXPmh (ORCPT ); Mon, 24 Nov 2008 10:42:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752615AbYKXPmY (ORCPT ); Mon, 24 Nov 2008 10:42:24 -0500 Received: from kroah.org ([198.145.64.141]:34854 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752473AbYKXPmX (ORCPT ); Mon, 24 Nov 2008 10:42:23 -0500 Date: Mon, 24 Nov 2008 07:31:38 -0800 From: Greg KH To: Daniel Lezcano Cc: Linux Kernel Mailing List , Linux Netdev List , David Miller , Linux Containers , "Eric W. Biederman" , Benjamin Thery Subject: Re: [patch 1/1][RFC]Handle uevent per namespace Message-ID: <20081124153138.GA16742@kroah.com> References: <492A86FA.5080804@fr.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <492A86FA.5080804@fr.ibm.com> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1253 Lines: 33 On Mon, Nov 24, 2008 at 11:50:34AM +0100, Daniel Lezcano wrote: > > Subject: Handle uevent per namespace > From: Daniel Lezcano > > At present when a network device is destroyed, inside a network > namespace, and this device has the same name as one network device > belonging to the initial network namespace (eg. eth0), the udev daemon > will disable the interface in the initial network namespace. > > IMHO, udev should not receive this event. The uevents should be per > namespace or at least do not send events when not for the initial > network namespace. IMHO, network namespaces are a mess and not something that you should be doing at all :) > The following patch is a RFC for making uevent namespace aware. I don't > know this part of the kernel code, so I am pretty sure t is not the > right way to do that :) Like Kay said, please don't change the kobject core for this, try just filtering in the network core the events that you handle there. good luck, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/