summaryrefslogtreecommitdiff
path: root/policy/org.freedesktop.upower.policy.in
diff options
context:
space:
mode:
Diffstat (limited to 'policy/org.freedesktop.upower.policy.in')
-rw-r--r--policy/org.freedesktop.upower.policy.in40
1 files changed, 40 insertions, 0 deletions
diff --git a/policy/org.freedesktop.upower.policy.in b/policy/org.freedesktop.upower.policy.in
new file mode 100644
index 0000000..2979e54
--- /dev/null
+++ b/policy/org.freedesktop.upower.policy.in
@@ -0,0 +1,40 @@
+<?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.suspend">
+ <_description>Suspend the system</_description>
+ <_message>Authentication is required to suspend the system</_message>
+ <defaults>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>yes</allow_active>
+ </defaults>
+ </action>
+
+ <action id="org.freedesktop.upower.hibernate">
+ <_description>Hibernate the system</_description>
+ <_message>Authentication is required to hibernate the system</_message>
+ <defaults>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>yes</allow_active>
+ </defaults>
+ </action>
+
+</policyconfig>