tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: linux has added "close on exec" flags to lots of fd calls



On Mon, Aug 04, 2008 at 07:00:57PM +0200, Joerg Sonnenberger wrote:
> On Mon, Aug 04, 2008 at 12:42:54PM -0400, Perry E. Metzger wrote:
> > Linux seems to be adding lots of flags to things like "open" to set
> > close on exec from the time an fd is born. They claim this helps with
> > security.
> 
> I don't think this argument makes much sense, but for multi-threaded
> programs having something like POSIX spawn around it better anyway.

On second thought and as written in the blog, it doesn't make sense at
all. sigprocmask and mutexes allow doing this in portable code.

Joerg


Home | Main Index | Thread Index | Old Index