Public bug reported:

I'm trying to configure Xubuntu 13.10 (saucy) in such a way that I can
change the CPU governor and maximum frequency (using cpufreq-set)
without sudo. I created an
/etc/polkit-1/localauthority/50-local.d/org.gnome.cpufreqselector.pkla
file with the following contents:

[CPU Frequency Governor]
Identity=unix-user:myusername
Action=org.gnome.cpufreqselector
ResultActive=yes
ResultAny=yes
ResultInactive=yes

Even after rebooting and logging back in as myusername, cpufreq-set
--max 1GHz fails with exit code 218. (The same command works fine as
root.) I've tried it from a text console, from an X terminal, and from
within an Xfce panel widget, all resulting in the same failure. I've
tried a few different ResultActive/ResultAny/ResultInactive combinations
in my .pkla file, but they didn't make a difference. I've tried
relocating the file to the /var/lib/polkit-1/localauthority/50-local.d/
directory, but it didn't help. Both polkitd and polkit-gnome-
authentication-agent-1 are running.

Furthermore, I see that Ubuntu already placed the following in
/var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla:

[Change CPU Frequency scaling]
Identity=unix-group:admin;unix-group:sudo
Action=org.gnome.cpufreqselector
ResultActive=yes

I believe that means that even without my local .pkla file, I should be
able to use cpufreq-set as myself, since I am in the sudo group.  Yet it
doesn't work.

** Affects: policykit (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1274833

Title:
  PolicyKit fails to allow the org.gnome.cpufreqselector action

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/policykit/+bug/1274833/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to