DBusConnection: implements _dbus_connection_get_pending_fds_count
authorAlban Crequy <alban.crequy@collabora.co.uk>
Fri, 18 Jul 2014 15:45:07 +0000 (16:45 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 15 Sep 2014 11:30:25 +0000 (12:30 +0100)
commit995734750cea65012537748ee56488c707d2f027
tree9bb5cf52e57bd4dc508b6732538f4c6dddc3ea4a
parentbbf11cd5f92064c7c8af61ad4d9ff41f3a039abc
DBusConnection: implements _dbus_connection_get_pending_fds_count

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

This will allow the bus to know whether there are pending file descriptors in a
DBusConnection's DBusMessageLoader.

https://bugs.freedesktop.org/show_bug.cgi?id=80559
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
[fix compilation on platforms that do not HAVE_UNIX_FD_PASSING -smcv]
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
dbus/dbus-connection-internal.h
dbus/dbus-connection.c
dbus/dbus-message-internal.h
dbus/dbus-message.c
dbus/dbus-transport.c
dbus/dbus-transport.h