Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759830AbXKTV7p (ORCPT ); Tue, 20 Nov 2007 16:59:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752557AbXKTV7e (ORCPT ); Tue, 20 Nov 2007 16:59:34 -0500 Received: from mx3.mail.elte.hu ([157.181.1.138]:60477 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752113AbXKTV7d (ORCPT ); Tue, 20 Nov 2007 16:59:33 -0500 Date: Tue, 20 Nov 2007 22:59:14 +0100 From: Ingo Molnar To: "Eric W. Biederman" Cc: Pavel Emelyanov , "Rafael J. Wysocki" , Pavel Machek , kernel list , netdev Subject: Re: 2.6.24-rc3: find complains about /proc/net Message-ID: <20071120215914.GE24156@elte.hu> References: <20071119191000.GA1560@elf.ucw.cz> <200711192304.25087.rjw@sisk.pl> <4743026B.2020907@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.1.7-deb -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 978 Lines: 23 * Eric W. Biederman wrote: > > lr-x------ 1 root root 64 Nov 20 18:03 3 -> /proc/net > > ... > > Yes all of those are nasty. So much for my clever way of implementing > these things. Grr. Simple hacks that almost work! btw., in case you feel inclined, i recently did some userspace coding and found to my surprise that /proc/self points to the parent task, not the thread itself (giving threads no real way to examine themselves). If you are hacking in this area, would it be a big trouble to add something like /proc/self-task/ or something like that? I had to use a raw gettid syscall to figure out the TID to get to /proc/*/tasks/TID/sched instrumentation info - which is quite a PITA. Ingo - 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/