Comment 25 for bug 455694

Revision history for this message
froynlaven (froynlaven) wrote :

my memory is a little fuzzy; i wouldn't stake my life on it, but fairly certain i modified:
/usr/share/polkit-1/actions/org.gnome.cpufreqselector.policy

as per
http://ubuntuforums.org/showthread.php?t=1310034

and changed this:
<defaults>

    <allow_inactive>no</allow_inactive>
    <allow_active>auth_admin_keep</allow_active>

</defaults>

to this:
<defaults>

    <allow_inactive>no</allow_inactive>
    <allow_active>yes</allow_active>

</defaults>

currently,
 rise@noon:/usr/share/polkit-1/actions$ tail -n7 org.gnome.cpufreqselector.policy
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
  </action>

--------------------

rise@noon:~$ pkaction --action-id org.gnome.cpufreqselector --verbose
org.gnome.cpufreqselector:
  description: Change CPU Frequency scaling
  message: Privileges are required to change the CPU Frequency scaling.
  vendor: The GNOME Project
  vendor_url: http://www.gnome.org/
  icon: gnome-cpu-frequency-applet
  implicit any: no
  implicit inactive: no
  implicit active: auth_admin_keep

--------------------

rise@noon:~$ pkcheck --action-id org.gnome.cpufreqselector --process $$; echo $?
polkit\56retains_authorization_after_challenge=1
Authorization requires authentication and -u wasn't passed.
2

[end]