Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S939562AbXFIBUv (ORCPT ); Fri, 8 Jun 2007 21:20:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753594AbXFIBUn (ORCPT ); Fri, 8 Jun 2007 21:20:43 -0400 Received: from mx1.redhat.com ([66.187.233.31]:46747 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753196AbXFIBUm (ORCPT ); Fri, 8 Jun 2007 21:20:42 -0400 Message-ID: <466A0020.50406@redhat.com> Date: Fri, 08 Jun 2007 18:19:28 -0700 From: Ulrich Drepper Organization: Red Hat, Inc. User-Agent: Thunderbird 2.0.0.0 (X11/20070419) MIME-Version: 1.0 To: Al Viro CC: Linus Torvalds , Davide Libenzi , Alan Cox , Theodore Tso , Eric Dumazet , Kyle Moffett , Linux Kernel Mailing List , Andrew Morton , Ingo Molnar Subject: Re: [patch 7/8] fdmap v2 - implement sys_socket2 References: <20070608120746.GD12687@thunk.org> <20070608140150.6f31672f@the-village.bc.nu> <20070608192652.4a291901@the-village.bc.nu> <4669A351.4010403@redhat.com> <20070608184650.GA4095@ftp.linux.org.uk> <4669A674.4080309@redhat.com> <20070609003622.GB4095@ftp.linux.org.uk> In-Reply-To: <20070609003622.GB4095@ftp.linux.org.uk> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1107 Lines: 34 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Al Viro wrote: > Exactly. Put it another way, randomizer is a stress-tester. ... and a security mechanism. And as such it is only useful if it is used. Probably it should be policy-controlled whether you can turn it off. > Note that > #define NR_FILES > > for (i = 0; i < NR_FILES; i++) > close(i); You're confusing the problems. This is not the argument for having a separate file descriptor set. It is the argument to have hidden file descriptors. Randomization has nothing whatsoever to do with this example. - -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFGagAg2ijCOnn/RHQRAhV+AJ9qT2epTxDWWS++74f+vrV3NucVHACdGkxm MULoyE+0NY7dSHcB2epKe7w= =o3+1 -----END PGP SIGNATURE----- - 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/