Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757708AbXFIRLA (ORCPT ); Sat, 9 Jun 2007 13:11:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755282AbXFIRKx (ORCPT ); Sat, 9 Jun 2007 13:10:53 -0400 Received: from mx1.redhat.com ([66.187.233.31]:53390 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754840AbXFIRKw (ORCPT ); Sat, 9 Jun 2007 13:10:52 -0400 Message-ID: <466ADEAB.7080202@redhat.com> Date: Sat, 09 Jun 2007 10:08:59 -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: <4669A674.4080309@redhat.com> <20070609003622.GB4095@ftp.linux.org.uk> <466A0020.50406@redhat.com> <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> In-Reply-To: <20070609165454.GE4095@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: 1202 Lines: 33 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Al Viro wrote: > That's simply not true. On the current kernel nothing stops you from e.g. > picking a random number and using F_DUPFD. Of course there are things stopping one from doing this (aside from the kernel not allowing this in the moment at all since the highest fd number is limited severely): - - this scheme would only be use if it would be possible to have completely random descriptor values. But what has been said here already is that this is too costly. Hence the approach to randomize only the base value. - - there are two interface to use: open + fcntl. This is racy. And don't tell me this doesn't matter. - -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFGat6r2ijCOnn/RHQRAiatAKCs7RLZmpgAU5NyT58c8ueJum4fgwCgjqP0 jPVCCWEdIHVQS05oIjdsZYs= =7UX+ -----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/