[PATCH 2/3] CPU frequency scaling addon
Holger Macht
hmacht at suse.de
Fri Aug 11 10:45:32 PDT 2006
Patch adding the privilege descriptor for the hal-power-cpufreq privilege.
Signed-off-by: Holger Macht <hmacht at suse.de>
---
diff --git a/privileges/Makefile.am b/privileges/Makefile.am
index f32ab1c..d300a60 100644
--- a/privileges/Makefile.am
+++ b/privileges/Makefile.am
@@ -9,7 +9,8 @@ dist_polkit_privilege_DATA =
hal-power-suspend.privilege \
hal-power-hibernate.privilege \
hal-power-poweroff.privilege \
- hal-power-reboot.privilege
+ hal-power-reboot.privilege \
+ hal-power-cpufreq.privilege
clean-local :
rm -f *~
diff --git a/privileges/hal-power-cpufreq.privilege b/privileges/hal-power-cpufreq.privilege
new file mode 100644
index 0000000..b2ff677
--- /dev/null
+++ b/privileges/hal-power-cpufreq.privilege
@@ -0,0 +1,13 @@
+
+# This privilege specifies who is allowed to control CPUFreq
+# via the org.freedesktop.Hal.Device.SystemPowerManagement
+# interface
+
+[Privilege]
+RequiredPrivileges=desktop-console
+SufficientPrivileges=
+Allow=uid:__all__
+Deny=
+CanObtain=True
+CanGrant=True
+ObtainRequireRoot=False
More information about the hal
mailing list