PolicyKit releases and !AWOL
David Zeuthen
david at fubar.dk
Thu Dec 6 08:58:20 PST 2007
On Thu, 2007-12-06 at 11:47 -0500, Doug Klima wrote:
> Nicolas Trangez wrote:
> > On Thu, 2007-12-06 at 11:33 -0500, Doug Klima wrote:
> >
> >> It's still providing some functionality that's provided by glib and as
> >> such still re-implementing a sub-set of glib and to what benefit?
> >>
> >
> > IIRC for the same reason glib can't be used inside eg the xorg server,
> > as glib will exit(3) whenever an allocation is done (using eg g_malloc)
> > which returns NULL (OOM). Something you can't afford to happen in a
> > long-running application like your X server or polkit.
> >
> > Nicolas
> >
> Except PolKit isn't a long running application. It just runs once, when
> the authorization is requested and exits. It's executed by D-Bus calls.
> So this reasoning is bogus.
No, your idea of how PolicyKit works is bogus. If you had bothered to
look at the API or the docs you will notice that authorizations can come
and go and applications like e.g. X, the message bus or HAL will need to
act on such changes.
David
More information about the hal
mailing list