Re: [patch 7/8] fdmap v2 - implement sys_socket2

From: Ulrich Drepper
Date: Fri Jun 08 2007 - 21:20:53 EST


-----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 <some constant>
>
> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/