Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 24 Jan 2022 22:24:31 +0100
From: Florian Weimer <fweimer@...hat.com>
To: enh <enh@...gle.com>
Cc: libc-coord@...ts.openwall.com,  Maciej Żenczykowski
 <maze@...gle.com>
Subject: Re: posix_spawn() support for
 close_range(CLOSE_RANGE_CLOEXEC)

> we have a proposal to add a new posix_spawn() flag to bionic
> (Android's libc) that would mark all file descriptors not otherwise
> mentioned as close-on-exec.
>
> (see https://android-review.googlesource.com/c/platform/bionic/+/1955269
> for the proposed implementation.)
>
> anyone aware of any other work in this kind of direction?

Solaris and glibc have posix_spawn_file_actions_addclosefrom_np (Solaris
was first).  Given that the execve is unavoidable (except for errors),
that seems pretty much equivalent.  Perhaps POSIX_SPAWN_CLOEXEC_DEFAULT
is a little bit easier to use?

Thanks,
Florian

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.