From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752893AbYGCP72 (ORCPT ); Thu, 3 Jul 2008 11:59:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752616AbYGCP7U (ORCPT ); Thu, 3 Jul 2008 11:59:20 -0400 Received: from yx-out-2324.google.com ([74.125.44.29]:34279 "EHLO yx-out-2324.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751782AbYGCP7T (ORCPT ); Thu, 3 Jul 2008 11:59:19 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=mrFywuANr/9PPz/iZ6A62xP+cTZnz1DlElN1D0tyhxnyCrbdDrkLbjJmN5+07KNHVf JqGuml5102k7qk0PfArtbP5atTqyvVKiyRkBEdzXgDy/YZyjnTn9h19puiRrDwv5rYgp 27Gck+WeZ9gyOyw5HBrg4n8uJOW4VLONkN8+M= Message-ID: <486CF71F.5090405@gmail.com> Date: Fri, 04 Jul 2008 00:58:23 +0900 From: Tejun Heo User-Agent: Thunderbird 2.0.0.12 (X11/20071114) MIME-Version: 1.0 To: "Eric W. Biederman" CC: Daniel Lezcano , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Al Viro , Linux Containers , Andrew Morton , Benjamin Thery Subject: Re: [PATCH 06/11] sysfs: Implement sysfs tagged directory support. References: <20080618170729.808539948@theryb.frec.bull.fr> <20080618170731.002784342@theryb.frec.bull.fr> <485F04E1.70204@gmail.com> <486706C9.9040303@gmail.com> <4869D314.5030403@gmail.com> <486A0751.9080602@gmail.com> <486AF4FA.8020805@gmail.com> <486B060C.7030607@gmail.com> <486C4515.1070007@gmail.com> <486CB051.5000507@fr.ibm.com> In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Eric W. Biederman wrote: > Daniel Lezcano writes: > >> The kobject events are sent through a netlink message which is not currently per >> network namespace. Shouldn't be useful to have a way to retrieve from the >> kobject the network namespace or the uevent socket associated with it ? IMHO >> having idr in the kobject + netns pointer associated may help to handle the >> sysfs isolation and makes the uevent per namespace trivial, no ? > > Grumble. I have been conveniently been forgetting about that socket. > Similarly we have the user mode helpers to deal with. > > For this conversation there is a simple answer. All of that is in the > kobject layer, and works even when you compile sysfs out of your kernel. > Therefore it is a separate problem. And sysfs idr tags have nothing > to do with it. > > It is most definitely something we need to come back to. I bet there > are some interesting interactions when you have multiple network devices > with the same name generating events. Related delta: I've been thinking that uevents should be part of sysfs not kobject as that's what the userland is gonna associate the event with. Would that solve the problem you're thinking about? Thanks. -- tejun