libimobiledevice / libusbmuxd

A client library to multiplex connections from and to iOS devices
https://libimobiledevice.org
GNU Lesser General Public License v2.1
574 stars 270 forks source link

inotify: Avoid leaking file descriptor to child processes #133

Closed davidedmundson closed 3 months ago

davidedmundson commented 8 months ago

inotify_init creates a file descriptor which by default is not makes with CLOEXEC. If the application using libusbmuxd spawns applications this then leaks through.


Downstream bug report: https://bugs.kde.org/show_bug.cgi?id=469889

nikias commented 3 months ago

Merged with c8e627016edd1440c8faf6f9b8f4092a83e01164.