Add function _dbus_get_peer_pid_from_tcp_handle() which returns pid and sid from...
authorRalf Habacker <ralf.habacker@freenet.de>
Fri, 8 Mar 2013 12:55:32 +0000 (13:55 +0100)
committerRalf Habacker <ralf.habacker@sag.eu>
Fri, 5 Apr 2013 09:17:26 +0000 (11:17 +0200)
commit8159956ed4d34ff217f67758a72005fe4362aa45
tree943f5bc5b46f85d2523dadf8c424b9ba9f92b7cd
parent89c1ecdd7cdd6c836506065a47bfb47d20bbb874
Add function _dbus_get_peer_pid_from_tcp_handle() which returns pid and sid from tcp connection peer.

This function is called by _dbus_read_credentials_socket() to fetch client credentials.

Because Wine is used to check cross compiled dbus for windows, in calls to GetExtendedTcpTable()
we use table class TCP_TABLE_OWNER_PID_ALL instead of TCP_TABLE_OWNER_PID_CONNECTIONS.
This class is the only one which is available since wine 1.5.3.

https://bugs.freedesktop.org/show_bug.cgi?id=61787
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
cmake/dbus/CMakeLists.txt
configure.ac
dbus/dbus-sysdeps-win.c