[Xcb] [Bug 14202] XDM- AUTHORIZATION-1 is broken

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Apr 13 00:05:19 PDT 2009


http://bugs.freedesktop.org/show_bug.cgi?id=14202


Bart Massey <x at po8.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #24681|0                           |1
        is obsolete|                            |




--- Comment #9 from Bart Massey <x at po8.org>  2009-04-13 00:05:19 PST ---
Created an attachment (id=24745)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=24745)
third try at auth patch

OK, after a phone call with Keithp I believe I now understand.  The way it's
supposed to work is:

  (1) the client uses libXau to look up the authentication method in the
.Xauthority file based on the *peer* address.
  (2) if the authentication type is Xdmcp, the client uses libXdmcp to wrap up
the *local* address in authentication packet.

I *think* the attached, completely untested patch does this thing, handling the
special case of UNIX-domain sockets on weird machines correctly and not
incurring any extra system calls.

As usual, feedback welcome.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Xcb mailing list