Should the session check a negative authorisation?

David Zeuthen david at fubar.dk
Mon Aug 10 12:32:31 PDT 2009


On Mon, 2009-08-10 at 15:08 -0400, Matthias Clasen wrote:
> > Thus, you should be able to just do this check in the user session using
> > libpolkit-gobject-1 .. that is, if you don't care about leaking the
> > action name "org.freedesktop.consolkit.system.restart" which is more or
> > less an implementation detail....
> 
> Or you simply call org.freedesktop.ConsoleKit.Manager.CanStop
> which was added for just this purpose...

Yes, that would be better - that way you avoid the "leak" I was talking
about above.

    David




More information about the polkit-devel mailing list