Skip to content
  • Alexander Larsson's avatar
    Fall back to SO_PEERCRED if credentials passing fails · 386f0f29
    Alexander Larsson authored
    Turns out libdbus doesn't send struct ucred credentials on linux, but
    just relies on the SO_PEERCRED support. However, gdbus does send, and
    expect to recieve a ucred credential. So, when libdbus talks to a
    gdbus server the authentication fails to send the credentials.
    
    We fix this by falling back to g_socket_get_credentials() if we don't
    get any credential messages.
    386f0f29