Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
None
-
Linux
Description
Now that QDBusServer is getting usable for p2p connection, the following methods of DBusConnection can provide useful information (for example, combined with a security framework to check the peer's credentials):
dbus_bool_t dbus_connection_get_unix_fd (DBusConnection *connection, int *fd) Get the UNIX file descriptor of the connection, if any. dbus_bool_t dbus_connection_get_socket (DBusConnection *connection, int *fd) Gets the underlying Windows or UNIX socket file descriptor of the connection, if any. dbus_bool_t dbus_connection_get_unix_user (DBusConnection *connection, unsigned long *uid) Gets the UNIX user ID of the connection if known. dbus_bool_t dbus_connection_get_unix_process_id (DBusConnection *connection, unsigned long *pid) Gets the process ID of the connection if any.
Without these methods, one will have to resort to the undocumented QDBusConnection::internalPointer().
I should be able to find some time to provide a patch, if requested.