Re: For the almost 4-year anniversary: O_CLOEXEC again
From: Davide Libenzi
Date: Sun Mar 28 2004 - 22:16:11 EST
On Sun, 28 Mar 2004, Ulrich Drepper wrote:
> The proposed solution is simple and already implemented on some systems
> (QNX, BeOS, maybe more). Beside the definition of O_CLOEXEC the
> untested patch below should be all that's needed.
What does prevent a fork() to hit you right before set_close_on_exec()?
Shouldn't we have an install-and-set?
(Personally I manually handle the fork child's code in my MT apps, when
I'm going to exec untrusted apps. Manually here mean close all open fds > 2)
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/