Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-22799

QDBusConnection : export more methods from DBusConnection

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • D-Bus
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            cnn Qt Core & Network
            mardy Alberto Mardegan
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes