[PATCH] Hal privilige seperation

Sjoerd Simons sjoerd at luon.net
Fri Jan 20 11:49:21 PST 2006


On Fri, Jan 20, 2006 at 10:30:39AM -0800, Artem Kachitchkine wrote:
> Artem Kachitchkine wrote:
> >
> >If hald process suddenly terminates without calling KillAll(), will 
> >hald-runner terminate too?
> 
> OK, I see now that KillAll() only kills children, not hald-runner 
> itself. So the question becomes: how and when is hald-runner terminated?

the runner does the following to setup it's dbus connection:
  dbus_connection_setup_with_g_main(c, NULL);
  dbus_connection_set_exit_on_disconnect(c, TRUE);

As soon as the dbus connection is broken the runner will automagically exit. In
that case it doesn't kill it's children. 

I've throught about that be imho the children should do the same, if their dbus
connection to the hal deamon dies, they should exit. This because if
hald_runner and hal get killed (or crash)for some reason crashethe kids 
should exit too.

  Sjoerd
-- 
One monk said to the other, "The fish has flopped out of the net! How will it
live?" The other said, "When you have gotten out of the net, I'll tell you."


More information about the hal mailing list