[patch] disallow requesting org.freedesktop.DBus

John (J5) Palmieri johnp at redhat.com
Thu Aug 17 20:53:22 PDT 2006


Take 2.  I returned an error in release_name because the ':' check does
so also.

On Thu, 2006-08-17 at 18:03 -0400, Havoc Pennington wrote:
> John (J5) Palmieri wrote:
> > Before this patch you could request org.freedesktop.DBus without an
> > error being raised.  You wouldn't actually own it but D-Bus would return
> > PRIMARY_OWNER.  This specifically errors out with a detailed error
> > message if you try to request the name.
> >
> 
> I might put this check a little further up in the function, below the 
> check that names starting with ':' aren't owned; it's an analogous check 
> that bus-managed/internal names can't be owned. The INVALID_ARGS error 
> might even be appropriate.
> 
> A similar check could make sense for release_service; it looks like 
> NON_EXISTENT would currently be returned, but NOT_OWNER would be better.
> 
> Havoc

-- 
John (J5) Palmieri <johnp at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbus-disallow-requesting-org.freedesktop.DBus-2.patch
Type: text/x-patch
Size: 1781 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060817/a2aa0427/dbus-disallow-requesting-org.freedesktop.DBus-2.bin


More information about the dbus mailing list