summaryrefslogtreecommitdiff
path: root/policy
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2008-12-09 11:13:07 +0000
committerRichard Hughes <richard@hughsie.com>2008-12-09 11:13:07 +0000
commit09be8aeefb656ce95b44724e2389be21501272bb (patch)
tree576726f0ef4f85d9102a3256eeb86520e438e9a1 /policy
parent43f1ae266895561114c7f68c87f47f9474643ba8 (diff)
trivial: mae the PolicyKit file validate
Diffstat (limited to 'policy')
-rw-r--r--policy/Makefile.am2
-rw-r--r--policy/org.freedesktop.devicekit.power.policy.in36
-rw-r--r--policy/org.freedesktop.devicekit.power.qos.policy.in58
3 files changed, 59 insertions, 37 deletions
diff --git a/policy/Makefile.am b/policy/Makefile.am
index 9db887a..cbcd4c9 100644
--- a/policy/Makefile.am
+++ b/policy/Makefile.am
@@ -1,5 +1,5 @@
polkit_policydir = $(datadir)/PolicyKit/policy
-dist_polkit_policy_DATA = org.freedesktop.devicekit.power.policy
+dist_polkit_policy_DATA = org.freedesktop.devicekit.power.policy org.freedesktop.devicekit.power.qos.policy
# You will need a recent intltool or the patch from this bug
# http://bugzilla.gnome.org/show_bug.cgi?id=462312
diff --git a/policy/org.freedesktop.devicekit.power.policy.in b/policy/org.freedesktop.devicekit.power.policy.in
index 8b76348..f3bfec8 100644
--- a/policy/org.freedesktop.devicekit.power.policy.in
+++ b/policy/org.freedesktop.devicekit.power.policy.in
@@ -37,40 +37,4 @@ file are instantly applied.
</defaults>
</action>
- <action id="org.freedesktop.devicekit.power.latency.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.devicekit.power.latency.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.devicekit.power.latency.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.devicekit.power.latency.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>
diff --git a/policy/org.freedesktop.devicekit.power.qos.policy.in b/policy/org.freedesktop.devicekit.power.qos.policy.in
new file mode 100644
index 0000000..f24821a
--- /dev/null
+++ b/policy/org.freedesktop.devicekit.power.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.devicekit.power.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.devicekit.power.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.devicekit.power.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.devicekit.power.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>