Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761062AbXFJEpY (ORCPT ); Sun, 10 Jun 2007 00:45:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756236AbXFJEpM (ORCPT ); Sun, 10 Jun 2007 00:45:12 -0400 Received: from twinlark.arctic.org ([207.29.250.54]:36287 "EHLO twinlark.arctic.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754200AbXFJEpL (ORCPT ); Sun, 10 Jun 2007 00:45:11 -0400 Date: Sat, 9 Jun 2007 21:45:09 -0700 (PDT) From: dean gaudet To: Linus Torvalds cc: Al Viro , Kyle Moffett , Ulrich Drepper , Davide Libenzi , Alan Cox , Theodore Tso , Eric Dumazet , Linux Kernel Mailing List , Andrew Morton , Ingo Molnar Subject: Re: [patch 7/8] fdmap v2 - implement sys_socket2 In-Reply-To: Message-ID: References: <20070609014140.GC4095@ftp.linux.org.uk> <466A0BFB.3070908@redhat.com> <20070609151521.GD4095@ftp.linux.org.uk> <466AD4BA.80407@redhat.com> <20070609165454.GE4095@ftp.linux.org.uk> <466ADEAB.7080202@redhat.com> <20070609172429.GF4095@ftp.linux.org.uk> <2E51520E-EC73-457F-809A-4749ED9A3C97@mac.com> <20070609200645.GG4095@ftp.linux.org.uk> <20070610031922.GC21478@ftp.linux.org.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1022 Lines: 23 On Sat, 9 Jun 2007, Linus Torvalds wrote: > IOW, the most common case for libraries is not that they get invoced to do > one thing, but that they get loaded and then used over and over and over > again, and the _reason_ for wanting to have a file descriptor open may > well be that the library wants to cache the file descriptor, rather than > having to open a file over and over again! for an example of a library wanting to cache an open fd ... and failing miserably at protecting itself from the application closing its fd read: http://bugzilla.padl.com/show_bug.cgi?id=304 http://bugzilla.padl.com/show_bug.cgi?id=305 basically libnss-ldap is trying to use getsockname/getpeername to prove that an fd belongs to it. the failure modes are quite delightful. -dean - 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/