replace PolicyKit with resmgr
Ludwig Nussel
ludwig.nussel at suse.de
Mon Jun 26 07:06:38 PDT 2006
On Monday 26 June 2006 15:24, Richard Hughes wrote:
> On Mon, 2006-06-26 at 15:01 +0200, Ludwig Nussel wrote:
> >
> > Back to polkit. resmgr itself has no means for a user to acquire
> > additional privileges like that pam-via-dbus interface of polkit.
> > I don't think such a complex construct is needed though. Running
> > "gnomesu resmgr grant $USER $PRIVILEGE" is equivalent and can be
> > used by non-dbus applications as well.
>
> What happens if we want to revoke privs?
resmgr revoke $USER $PRIVILEGE
> Personally I like the fact we can do all this over DBUS, because
> programs like gnome-power-manager do not have to link to specific
> libraries and just use a couple line dbus-glib method.
With the current PoC implementation of PolicyKit you are going to
use libpolkit resp libpolkit-grant for convenience even if your app
already uses dbus. If you insist in using dbus calls a dbus
interface for resmgr could be created. In fact my first approach was
to use resmgr as backend for polkitd. Then I noticed that it would
be way simpler to skip the whole dbus stuff and have libpolkit
directly talk to resmgr.
cu
Ludwig
--
(o_ Ludwig Nussel
//\ SUSE LINUX Products GmbH, Development
V_/_ http://www.suse.de/
More information about the hal
mailing list