-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Eric Blake on 8/23/2009 8:37 PM: > For that matter, proposing an > O_SAFER to the glibc folks might be worthwhile.
With kernel support for O_SAFER, our *_safer paradigms could even be more efficient (no fd_safer after the fact, so fewer kernel calls and less temporary fd pressure). Plus, the kernel folks have so far avoided having to create dup + flags: dup (n) -> fcntl (n, F_DUPFD, 0) dup_safer (n) -> fcntl (n, F_DUPFD, 3) dup_noinherit (n) -> fcntl (n, F_DUPFD_CLOEXEC, 0) dup_safer_noinherit (n) -> fcntl (n, F_DUPFD_CLOEXEC, 3) so everywhere that we care about *_safer, we either have a place for a new flag or we can already specify a minimum. - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqSBgQACgkQ84KuGfSFAYDOdwCfUetXfbJHSWgjDKPbfyADsQ1x JmIAn2lXAMm4FP7SnAeqHRTv9b8THgHM =AVya -----END PGP SIGNATURE-----