[haiku-commits] Re: haiku: hrev49630 - in src: servers/launch system/kernel/fs

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 11 Sep 2015 11:46:15 +0200

Am 11/09/2015 um 11:41 schrieb Ingo Weinhold:

On 11.09.2015 09:20, axeld@xxxxxxxxxxxxxxxx wrote:
e668e80db033: VFS: Always open kernel FDs with O_CLOEXEC.
* Avoids leaking them into userland.
It seems a questionable strategy that any userland team inherits the
kernel I/O context in the first place.

Yes, indeed. Would you like me to change that instead of doing it this way?

Wasn't there also a long standing issue with unrelated FDs appearing in
random userland teams?

Obviously :-)
All FDs currently open when launching the first userland app (ie. bash previously, now the launch_daemon) were inherited.
For example each application had an r/w file handle for the boot device...

Bye,
Axel.

Other related posts: