New system calls: pidfd_open() and close_range()
New system calls: pidfd_open() and close_range()
Posted May 28, 2019 6:58 UTC (Tue) by roc (subscriber, #30627)In reply to: New system calls: pidfd_open() and close_range() by sbaugh
Parent article: New system calls: pidfd_open() and close_range()
> Again, we shouldn't add syscalls to speed up operations which should not be done in the first place.
But many programs do want hardening --- e.g. Firefox and Chrome need to close all fds in sandboxed child processes --- and probably that trend is to be encouraged. Why shouldn't they have an efficient way to do it?
Plus, it seems to me that leaking internal file descriptors into spawned subprocesses is unhygenic, asking for trouble, and should not be the default.