summaryrefslogtreecommitdiff
path: root/src/org.opensuse.cupspkhelper.mechanism.policy.in
blob: de6abab0d98cec0612f942ad760edea3ac32f45b (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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?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">

<policyconfig>
  <vendor>The openSUSE Project</vendor>
  <vendor_url>http://www.opensuse.org/</vendor_url>
  <icon_name>printer</icon_name>

  <!-- Exists mainly so that it's possible to not require a password for this
       operation: if some authorization is required, then the PolicyKit helper
       will fallback on printer-X-edit. -->
  <action id="org.opensuse.cupspkhelper.mechanism.printer-set-default">
    <_description>Set a printer as default printer</_description>
    <_message>Privileges are required to set a printer, or a class, as default printer.</_message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
  </action>

  <!-- Exists mainly so that it's possible to not require a password for this
       operation: if some authorization is required, then the PolicyKit helper
       will fallback on printer-X-edit. -->
  <action id="org.opensuse.cupspkhelper.mechanism.printer-enable">
    <_description>Enable/Disable a printer</_description>
    <_message>Privileges are required to enable/disable a printer, or a class.</_message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
  </action>

  <action id="org.opensuse.cupspkhelper.mechanism.printer-local-edit">
    <_description>Add/Remove/Edit a local printer</_description>
    <_message>Privileges are required to add/remove/edit a local printer.</_message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
  </action>

  <action id="org.opensuse.cupspkhelper.mechanism.printer-remote-edit">
    <_description>Add/Remove/Edit a remote printer</_description>
    <_message>Privileges are required to add/remove/edit a remote printer.</_message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
  </action>

  <action id="org.opensuse.cupspkhelper.mechanism.class-edit">
    <_description>Add/Remove/Edit a class</_description>
    <_message>Privileges are required to add/remove/edit a class.</_message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
  </action>

  <action id="org.opensuse.cupspkhelper.mechanism.server-settings">
    <_description>Get/Set server settings</_description>
    <_message>Privileges are required to get/set server settings.</_message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
  </action>

  <action id="org.opensuse.cupspkhelper.mechanism.job-edit">
    <_description>Restart/Cancel/Edit a job</_description>
    <_message>Privileges are required to restart/cancel/edit a job.</_message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

  <action id="org.opensuse.cupspkhelper.mechanism.job-not-owned-edit">
    <_description>Restart/Cancel/Edit a job owned by another user</_description>
    <_message>Privileges are required to restart/cancel/edit a job owned by another user.</_message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
  </action>

  <action id="org.opensuse.cupspkhelper.mechanism.devices-get">
    <_description>Get devices</_description>
    <_message>Privileges are required to get devices.</_message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
  </action>

  <!-- Deprecated -->
  <action id="org.opensuse.cupspkhelper.mechanism.printeraddremove">
    <_description>Add/Remove/Edit a printer</_description>
    <_message>Privileges are required to add/remove/edit a printer.</_message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin</allow_active>
    </defaults>
  </action>
</policyconfig>