summaryrefslogtreecommitdiff
path: root/policy
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2008-05-08 22:29:38 -0400
committerDavid Zeuthen <davidz@redhat.com>2008-05-08 22:29:38 -0400
commit37f9df9b0568f9834452c949336783bf34e02ab9 (patch)
tree567a010da3aa10870c7f52f1c311a5e36bc9cc0f /policy
initial commit
Diffstat (limited to 'policy')
-rw-r--r--policy/Makefile.am17
-rw-r--r--policy/org.freedesktop.devicekit.power.policy.in32
2 files changed, 49 insertions, 0 deletions
diff --git a/policy/Makefile.am b/policy/Makefile.am
new file mode 100644
index 0000000..e03f095
--- /dev/null
+++ b/policy/Makefile.am
@@ -0,0 +1,17 @@
+
+devkit_policydir = $(datadir)/PolicyKit/policy
+
+dist_devkit_policy_DATA = \
+ org.freedesktop.devicekit.power.policy
+
+@INTLTOOL_POLICY_RULE@
+
+check:
+ polkit-policy-file-validate $(dist_devkit_policy_DATA)
+
+clean-local :
+ rm -f *~
+
+DISTCLEANFILES = $(dist_devkit_policy_DATA)
+
+EXTRA_DIST = $(dist_devkit_policy_DATA:.policy=.policy.in)
diff --git a/policy/org.freedesktop.devicekit.power.policy.in b/policy/org.freedesktop.devicekit.power.policy.in
new file mode 100644
index 0000000..759b747
--- /dev/null
+++ b/policy/org.freedesktop.devicekit.power.policy.in
@@ -0,0 +1,32 @@
+<?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.suspend">
+ <_description>Suspend the system to RAM</_description>
+ <_message>Authentication is required to suspend to system</_message>
+ <defaults>
+ <allow_any>no</allow_any>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>yes</allow_active>
+ </defaults>
+ </action>
+
+</policyconfig>