Status of Policy Kit

Doug Goldstein cardoe at gentoo.org
Thu Apr 26 06:48:05 PDT 2007


Rémi Cardona wrote:
> David Zeuthen a écrit :
>> that are triggered by a session-wide D-Bus service; e.g. applications
>> (like gnome-mount) who are told by e.g. HAL that a certain method cannot
>> be invoked (because HAL says libpolkit doesn't say 'yes') just calls
>> into org.gnome.PolicyKit and the session daemon (possibly activated)
>> handling that service prompt the user for authentication. This is in the
>> PolicyKit-gnome project; it's not yet in GNOME SVN but will be shortly
>> as gnome-mount and other stuff is going to depend on it.
>
> Will there be an "easy" way for us distributors to ship a PolicyKit
> that works pretty much like what HAL in Gentoo does today :
>
>   <policy group="plugdev">
>     <allow
> send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
>     <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
>     <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
>     <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
>   </policy>
>
> Just wondering :)
>
> Regards,
> Rémi
This is already taken care of on Gentoo side. There will be different
action taken by USE flag which will be auto-enabled in desktop profiles.
Gentoo will use PolicyKit and the fall back approach for as long as
that's available.

I'll blog about it sometime on planet.gentoo.org


More information about the hal mailing list