PolicyKit
David Zeuthen
david at fubar.dk
Mon Jul 28 12:28:42 PDT 2008
On Mon, 2008-07-28 at 13:34 -0400, Ben Gamari (FOSS) wrote:
> Hey all,
>
> Recently, I've been having some issues with policykit (from git)
> refusing to grant me privileges. Is there any reason why the following
> should not work?
>
> > ben at mercury /opt/exp/PolicyKit/polkitd $ polkit-auth --obtain org.freedesktop.hal.power-management.suspend
> > Attempting to obtain authorization for org.freedesktop.hal.power-management.suspend.
> > polkit-grant-helper: given auth type (8 -> yes) is bogus
> > Failed to obtain authorization for org.freedesktop.hal.power-management.suspend.
> > Attempting to obtain authorization for org.freedesktop.hal.power-management.suspend.
> > polkit-grant-helper: given auth type (8 -> yes) is bogus
> > Failed to obtain authorization for org.freedesktop.hal.power-management.suspend.
>
> Looking at the code, it seems as if POLKIT_RESULT_YES is not listed as a
> valid result in verify_with_polkit. Is there a reason for this?
It looks like you've already have an authorization for that action?
(polkit-auth with arguments will show the authorizations for the current
process)
What version(s) of polkit are you seeing this with?
David
More information about the hal
mailing list