Implementing LOCAL_CREDS socket credentials
Julio M. Merino Vidal
jmmv84 at gmail.com
Sun Aug 27 12:45:15 PDT 2006
On 8/27/06, Julio M. Merino Vidal <jmmv84 at gmail.com> wrote:
> On 8/27/06, Julio M. Merino Vidal <jmmv84 at gmail.com> wrote:
> > If this extra step must be introduced in the protocol it should be
> > done before the first D-Bus stable release... Or maybe there
> > currently is a way to achieve the above in a safe manner? The code is
> > rather complex to understand what is really going on...
>
> I've been able to successfully implement this same approach in
> gnome-keyring. Please check this out for an explanation and a patch:
>
> http://bugzilla.gnome.org/show_bug.cgi?id=353105
>
> The changes required to dbus should be very similar in spirit,
> although I'm confused by the code flow thus being unable to apply
> them...
Hmm... I couldn't stop trying to get this to work and I finally got a
patch against dbus that adds this intermediate synchronization step to
make LOCAL_CREDS work. So far it seems to work fine but I still have
to stress-test it and polish some minor details. It is attached.
Prior to submitting this to the Bugzilla I would like to reach an
agreement on the change because you probably want to avoid modifying
the protocol at all costs... At the moment I do not know how this
could be done without the change, though... Fortunately dbus is still
not 1.0 so it "can" be done (after all, the API was recently broken
during an update, right? ;-)
Thanks for your attention.
--
Julio M. Merino Vidal <jmmv84 at gmail.com>
The Julipedia - http://julipedia.blogspot.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbus-external.diff
Type: text/x-patch
Size: 12839 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060827/b793d8c0/dbus-external.bin
More information about the dbus
mailing list