problem with system activation

Richard Hughes hughsient at gmail.com
Fri Sep 21 08:48:34 PDT 2007


On Fri, 2007-09-21 at 11:40 -0400, David Zeuthen wrote:
> On Thu, 2007-09-20 at 16:05 -0400, Bill Nottingham wrote:
> > We've noticed in testing here that system activation only works if
> > the service file in /usr/share/dbus-1/system-services is named
> > <service>.service - if it's just a random name, dbus won't find
> > it for activation (even if it has the proper Name= line in the
> > file.)
> > 
> > Is this intentional or a bug? (If it's intentional, it should
> > probably be documented.)
> 
> Sounds like a bug to me; it works with a random name for session-bus
> activation. Richard?

No, it's a design decision. If we have a random name we have to parse
_all_ the files in the directory looking for a service name. IIRC Havoc
was okay with saying "the service name has to be the file name" as
system activation is very security sensitive, and we don't want to be
doing all the path and file scanning in a setuid helper.

Richard.




More information about the dbus mailing list