summaryrefslogtreecommitdiff
path: root/policy/org.freedesktop.devicekit.power.policy.in
blob: 8b763487654c883f9013e7fad8dc258ee032d747 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?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</_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.devicekit.power.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>

  <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>