Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761246AbXEaSql (ORCPT ); Thu, 31 May 2007 14:46:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755215AbXEaSqd (ORCPT ); Thu, 31 May 2007 14:46:33 -0400 Received: from x35.xmailserver.org ([64.71.152.41]:3086 "EHLO x35.xmailserver.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753245AbXEaSqd (ORCPT ); Thu, 31 May 2007 14:46:33 -0400 X-AuthUser: davidel@xmailserver.org Date: Thu, 31 May 2007 11:46:31 -0700 (PDT) From: Davide Libenzi X-X-Sender: davide@alien.or.mcafeemobile.com To: Ulrich Drepper cc: Linux Kernel Mailing List , Andrew Morton , Ingo Molnar , Linus Torvalds Subject: Re: [PATCH] Introduce O_CLOEXEC (take >2) In-Reply-To: <465F170B.3070603@redhat.com> Message-ID: References: <200705311809.l4VI9F9X009556@devserv.devel.redhat.com> <465F170B.3070603@redhat.com> X-GPG-FINGRPRINT: CFAE 5BEE FD36 F65E E640 56FE 0974 BF23 270F 474E X-GPG-PUBLIC_KEY: http://www.xmailserver.org/davidel.asc 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: 925 Lines: 28 On Thu, 31 May 2007, Ulrich Drepper wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Davide Libenzi wrote: > > Isn't this better be a global process flag? Default should be, for legacy > > reasons, > > No. Policies are always wrong since it means code that cannot change > the policy (e.g, all runtime libraries) have no access to the > functionality. I cannot set the policy to default to close-on-exit in > glibc all the while the application assumes this is not the case. I was talking for a broader usage, not only glibc centric. Most ppl writing MT+exec apps wants all but (eventually) and handfull of files leaking across the exec boundary. - Davide - 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/