bus: enforce pending_fd_timeout
authorAlban Crequy <alban.crequy@collabora.co.uk>
Mon, 21 Jul 2014 16:17:11 +0000 (17:17 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 15 Sep 2014 11:30:33 +0000 (12:30 +0100)
commite0c9d31be3b9eea9ee2a3a255bc2cf9aad713642
tree2c17d5f8ad94139fca8d129308ea3b5dc001f4f4
parent8021fd84267ee1394d96f4a119adb57de3971a62
bus: enforce pending_fd_timeout

This is one of four commits needed to address CVE-2014-3637.

The bus uses _dbus_connection_set_pending_fds_function and
_dbus_connection_get_pending_fds_count to be notified when there are pending
file descriptors. A timeout per connection is armed and disarmed when the file
descriptor list is used and emptied.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=80559
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
bus/connection.c