bus config files problem

John (J5) Palmieri johnp at redhat.com
Mon Apr 14 09:44:52 PDT 2008

On Sun, 2008-04-13 at 12:57 -0300, Thiago Macieira wrote:
> ich wrote:
> >I'm writing a system bus service for which i'd like root (or a config
> >file owner) to be able to change which users could connect to it.
> >
> >So i have 3 problems:
> >
> >Where is the busconfig.dtd?
> >http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd (found in
> >other cfg files) does not even exist, and a google search proved
> >fruitless.
> You can find it in the sources for the D-Bus daemon. It's in doc.
> >Is there some api to programmatically change the files?
> No. There's no need. It's just XML.
> >Is there a way to get dbus to reread conf files without restarting?
> Yes. There's a method called org.freedesktop.DBus.ReloadConfig in the 
> org.freedesktop.DBus service.
> >Changing policy from within a service seems reasonable.  And it would be
> >pretty lame to have to tell users of a GUI frontend that they have to
> >bust out a text editor, understand the dtd, edit it by hand, kill, then
> >restart the dbus system bus and anything attached to it.

Sounds evil to me.  Services shouldn't be automatically policy dynamic.
That should be designed into a service.  Please search for PolicyKit for
the correct way to handle this.  Without that piece you are going end up
with A pretty tangled policy (read insecure).

John (J5) Palmieri <johnp at redhat.com>

More information about the dbus mailing list