Re: [patch 7/8] fdmap v2 - implement sys_socket2
From: Ulrich Drepper
Date: Sat Jun 09 2007 - 13:11:01 EST
-----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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/