diff options
author | Alban Crequy <alban.crequy@collabora.co.uk> | 2014-07-18 17:28:32 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-09-15 12:30:30 +0100 |
commit | 8021fd84267ee1394d96f4a119adb57de3971a62 (patch) | |
tree | 06992c03cc5d687e33522cd92da5d4adab10eba6 /dbus/dbus-message-private.h | |
parent | 995734750cea65012537748ee56488c707d2f027 (diff) | |
download | dbus-8021fd84267ee1394d96f4a119adb57de3971a62.tar.gz |
DBusConnection: implements _dbus_connection_set_pending_fds_function
This is one of four commits needed to address CVE-2014-3637.
This will allow the bus to be notified whenever a file descriptor is added or
removed from a DBusConnection's DBusMessageLoader.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=80559
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'dbus/dbus-message-private.h')
-rw-r--r-- | dbus/dbus-message-private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dbus/dbus-message-private.h b/dbus/dbus-message-private.h index e1578abd..a611b095 100644 --- a/dbus/dbus-message-private.h +++ b/dbus/dbus-message-private.h @@ -80,6 +80,8 @@ struct DBusMessageLoader int *unix_fds; /**< File descriptors that have been read from the transport but not yet been handed to any message. Array will be allocated at first use. */ unsigned n_unix_fds_allocated; /**< Number of file descriptors this array has space for */ unsigned n_unix_fds; /**< Number of valid file descriptors in array */ + void (* unix_fds_change) (void *); /**< Notify when the pending fds change */ + void *unix_fds_change_data; #endif }; |