summaryrefslogtreecommitdiff
path: root/policy/org.freedesktop.upower.qos.policy.in
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2010-01-18 17:05:25 +0000
committerRichard Hughes <richard@hughsie.com>2010-01-18 17:05:25 +0000
commita3dd31ee5746be77a2a3bc4e4de02452d126401f (patch)
tree260d1b12cf436a8888e0780aa3ec68fab516340e /policy/org.freedesktop.upower.qos.policy.in
parentd27c836e97466d2ca42eaae942df6c3373fb0af3 (diff)
Rename the PolicyKit rules from org.freedesktop.devicekit.power to org.freedesktop.upower
Diffstat (limited to 'policy/org.freedesktop.upower.qos.policy.in')
-rw-r--r--policy/org.freedesktop.upower.qos.policy.in58
1 files changed, 58 insertions, 0 deletions
diff --git a/policy/org.freedesktop.upower.qos.policy.in b/policy/org.freedesktop.upower.qos.policy.in
new file mode 100644
index 0000000..9d33ea1
--- /dev/null
+++ b/policy/org.freedesktop.upower.qos.policy.in
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!DOCTYPE policyconfig PUBLIC
+ "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
+
+<!--
+Policy definitions for DeviceKit-power
+
+Copyright (c) 2008 David Zeuthen <david@fubar.dk>
+
+NOTE: If you make changes to this file, make sure to validate the file
+using the polkit-policy-file-validate(1) tool. Changes made to this
+file are instantly applied.
+-->
+
+<policyconfig>
+ <vendor>The DeviceKit-power Project</vendor>
+ <vendor_url>http://hal.freedesktop.org/docs/DeviceKit-power/</vendor_url>
+ <icon_name>system-suspend</icon_name>
+
+ <action id="org.freedesktop.upower.qos.request-latency">
+ <_description>Set the required latency of an application</_description>
+ <_message>Authentication is required to set the required latency of an application</_message>
+ <defaults>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>yes</allow_active>
+ </defaults>
+ </action>
+
+ <action id="org.freedesktop.upower.qos.request-latency-persistent">
+ <_description>Set a persistent latency setting</_description>
+ <_message>Authentication is required to set a persistent latency setting</_message>
+ <defaults>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>yes</allow_active>
+ </defaults>
+ </action>
+
+ <action id="org.freedesktop.upower.qos.set-minimum-latency">
+ <_description>Set administrator settings for latency control</_description>
+ <_message>Authentication is required to set administrator settings for latency control</_message>
+ <defaults>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>auth_admin</allow_active>
+ </defaults>
+ </action>
+
+ <action id="org.freedesktop.upower.qos.cancel-request">
+ <_description>Cancel a latency request</_description>
+ <_message>Authentication is required to cancel a latency request</_message>
+ <defaults>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>auth_admin</allow_active>
+ </defaults>
+ </action>
+
+</policyconfig>