~behda/+junk/udisks2.original

« back to all changes in this revision

Viewing changes to doc/html/udisks-polkit-actions.html

  • Committer: behda
  • Date: 2014-05-24 15:15:11 UTC
  • Revision ID: pauvitk@gmail.com-20140524151511-3vtr0uubjewx3z2j
Initial commit of source code and Debian packaging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<html>
 
3
<head>
 
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 
5
<title>UDisks Reference Manual: Authorization Checks</title>
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
 
7
<link rel="home" href="index.html" title="UDisks Reference Manual">
 
8
<link rel="up" href="ref-dbus-overview.html" title="Overview">
 
9
<link rel="prev" href="ref-dbus-jobs.html" title="The /org/freedesktop/UDisks2/jobs/* objects">
 
10
<link rel="next" href="udisks-std-options.html" title="The options parameter">
 
11
<meta name="generator" content="GTK-Doc V1.20 (XML mode)">
 
12
<link rel="stylesheet" href="style.css" type="text/css">
 
13
</head>
 
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
 
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
 
16
<td width="100%" align="left" class="shortcuts"></td>
 
17
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
 
18
<td><a accesskey="u" href="ref-dbus-overview.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
 
19
<td><a accesskey="p" href="ref-dbus-jobs.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
 
20
<td><a accesskey="n" href="udisks-std-options.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
 
21
</tr></table>
 
22
<div class="sect1">
 
23
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
 
24
<a name="udisks-polkit-actions"></a>Authorization Checks</h2></div></div></div>
 
25
<p>
 
26
          Many methods and operations offered by udisks requires the
 
27
          calling user to be sufficiently authorized. Whether the user
 
28
          is authorized is checked using <a class="ulink" href="http://www.freedesktop.org/software/polkit/docs/latest/polkit.8.html" target="_top">polkit</a>
 
29
          allowing the administrator to configure fine-grained permissions via
 
30
          polkit authorization rules.
 
31
        </p>
 
32
<p>
 
33
          There is not necessarily a one-to-one relationship between
 
34
          D-Bus methods and polkit actions - typically the
 
35
          relationship is more complicated and depends on both the
 
36
          context of the process invoking the method, the object the
 
37
          method is acting on and possibly more factors. For example,
 
38
          the <a class="link" href="gdbus-org.freedesktop.UDisks2.Filesystem.html#gdbus-method-org-freedesktop-UDisks2-Filesystem.Mount" title="The Mount() method">Filesystem.Mount()</a>
 
39
          method call may check that the caller is authorized for one
 
40
          of the four actions
 
41
          <span class="emphasis"><em>org.freedesktop.udisks2.filesystem-mount</em></span>,
 
42
          <span class="emphasis"><em>org.freedesktop.udisks2.filesystem-mount-system</em></span>,
 
43
          <span class="emphasis"><em>org.freedesktop.udisks2.filesystem-mount-other-seat</em></span>
 
44
          or
 
45
          <span class="emphasis"><em>org.freedesktop.udisks2.filesystem-mount-fstab</em></span>
 
46
          depending on circumstances.
 
47
        </p>
 
48
<p>
 
49
          Often there will be two polkit actions for one operation -
 
50
          one for so-called <span class="quote">“<span class="quote">system devices</span>”</span> and one for
 
51
          non-system devices. In this context <span class="quote">“<span class="quote">system
 
52
          device</span>”</span> refers to the value of the <a class="link" href="gdbus-org.freedesktop.UDisks2.Block.html#gdbus-property-org-freedesktop-UDisks2-Block.HintSystem" title='The "HintSystem" property'>Block:HintSystem</a>
 
53
          D-Bus property and is normally only
 
54
          <code class="constant">TRUE</code> for devices not considered
 
55
          <span class="quote">“<span class="quote">removable</span>”</span> (devices considered removable
 
56
          include USB attached storage, Flash media and optical
 
57
          drives). See <a class="xref" href="udisks.8.html" title="udisks"><span class="refentrytitle">udisks</span>(8)</a> for how to control
 
58
          if a device is considered a system device.
 
59
        </p>
 
60
<p>
 
61
          The polkit actions are not considered stable and may change
 
62
          from release to release so administrators should take notice
 
63
          when upgrading from one version of udisks to another. For
 
64
          example, polkit authorization rules may need to be updated
 
65
          to match an updated policy.
 
66
        </p>
 
67
<p>
 
68
          See <a class="xref" href="udisks-polkit-actions.html#udisks-polkit-details" title="Table 1. Known polkit variables">Table 1, “Known polkit variables”</a> for the
 
69
          variables that can be used to assist in determining if the
 
70
          caller is authorized (note that each variable may not be set
 
71
          for request). For example, a polkit authorization rule for
 
72
          any of the
 
73
          <span class="emphasis"><em>org.freedesktop.udisks2.filesystem-mount*</em></span>
 
74
          actions can use the <em class="parameter"><code>device</code></em> variable
 
75
          to determine if the caller is authorized to mount a specific
 
76
          block device.
 
77
        </p>
 
78
<div class="table">
 
79
<a name="udisks-polkit-details"></a><p class="title"><b>Table 1. Known polkit variables</b></p>
 
80
<div class="table-contents"><table summary="Known polkit variables" border="1">
 
81
<colgroup>
 
82
<col>
 
83
<col>
 
84
</colgroup>
 
85
<thead><tr>
 
86
<th align="left">key</th>
 
87
<th align="left">value</th>
 
88
</tr></thead>
 
89
<tbody>
 
90
<tr>
 
91
<td align="left"><em class="parameter"><code>device</code></em></td>
 
92
<td align="left">If the object is a block device, this property is set to the value of the <a class="link" href="gdbus-org.freedesktop.UDisks2.Block.html#gdbus-property-org-freedesktop-UDisks2-Block.PreferredDevice" title='The "PreferredDevice" property'>Block:PreferredDevice</a> property. If set, this is guaranteed to be a device file, for example <span class="quote">“<span class="quote">/dev/vg_lucifer/lv_root</span>”</span> or <span class="quote">“<span class="quote">/dev/sda1</span>”</span>. If the object is not a block device, this is not set.</td>
 
93
</tr>
 
94
<tr>
 
95
<td align="left"><em class="parameter"><code>drive</code></em></td>
 
96
<td align="left">Like the <em class="parameter"><code>device</code></em> variable, but if the object is also a drive, this variable includes Vital Product Data about the drive such as the vendor and model identifiers (if available), for example <span class="quote">“<span class="quote">INTEL SSDSA2MH080G1GC (/dev/sda1)</span>”</span>. Otherwise is just set to the same value as <em class="parameter"><code>device</code></em>. If the object is not a block device, this is not set (it is however set if the object is a block device but not a drive).</td>
 
97
</tr>
 
98
<tr>
 
99
<td align="left"><em class="parameter"><code>drive.wwn</code></em></td>
 
100
<td align="left">If the object is a drive (or a block device that is part of a drive), this is set to the value of the <a class="link" href="gdbus-org.freedesktop.UDisks2.Drive.html#gdbus-property-org-freedesktop-UDisks2-Drive.WWN" title='The "WWN" property'>Drive:WWN</a> property.</td>
 
101
</tr>
 
102
<tr>
 
103
<td align="left"><em class="parameter"><code>drive.serial</code></em></td>
 
104
<td align="left">If the object is a drive (or a block device that is part of a drive), this is set to the value of the <a class="link" href="gdbus-org.freedesktop.UDisks2.Drive.html#gdbus-property-org-freedesktop-UDisks2-Drive.Serial" title='The "Serial" property'>Drive:Serial</a> property.</td>
 
105
</tr>
 
106
<tr>
 
107
<td align="left"><em class="parameter"><code>drive.vendor</code></em></td>
 
108
<td align="left">If the object is a drive (or a block device that is part of a drive), this is set to the value of the <a class="link" href="gdbus-org.freedesktop.UDisks2.Drive.html#gdbus-property-org-freedesktop-UDisks2-Drive.Vendor" title='The "Vendor" property'>Drive:Vendor</a> property.</td>
 
109
</tr>
 
110
<tr>
 
111
<td align="left"><em class="parameter"><code>drive.model</code></em></td>
 
112
<td align="left">If the object is a drive (or a block device that is part of a drive), this is set to the value of the <a class="link" href="gdbus-org.freedesktop.UDisks2.Drive.html#gdbus-property-org-freedesktop-UDisks2-Drive.Model" title='The "Model" property'>Drive:Model</a> property.</td>
 
113
</tr>
 
114
<tr>
 
115
<td align="left"><em class="parameter"><code>drive.revision</code></em></td>
 
116
<td align="left">If the object is a drive (or a block device that is part of a drive), this is set to the value of the <a class="link" href="gdbus-org.freedesktop.UDisks2.Drive.html#gdbus-property-org-freedesktop-UDisks2-Drive.Revision" title='The "Revision" property'>Drive:Revision</a> property.</td>
 
117
</tr>
 
118
<tr>
 
119
<td align="left"><em class="parameter"><code>drive.removable</code></em></td>
 
120
<td align="left">If the object is a drive (or a block device that is part of a drive), this is set to the string <span class="quote">“<span class="quote">true</span>”</span> only if the value of the <a class="link" href="gdbus-org.freedesktop.UDisks2.Drive.html#gdbus-property-org-freedesktop-UDisks2-Drive.Removable" title='The "Removable" property'>Drive:Removable</a> property is <code class="constant">TRUE</code>.</td>
 
121
</tr>
 
122
<tr>
 
123
<td align="left"><em class="parameter"><code>drive.removable.bus</code></em></td>
 
124
<td align="left">If the object is a drive (or a block device that is part of a drive), this is set to the value of the <a class="link" href="gdbus-org.freedesktop.UDisks2.Drive.html#gdbus-property-org-freedesktop-UDisks2-Drive.ConnectionBus" title='The "ConnectionBus" property'>Drive:ConnectionBus</a> property. This variable is set only if the value of the <a class="link" href="gdbus-org.freedesktop.UDisks2.Drive.html#gdbus-property-org-freedesktop-UDisks2-Drive.Removable" title='The "Removable" property'>Drive:Removable</a> property is <code class="constant">TRUE</code>.</td>
 
125
</tr>
 
126
<tr>
 
127
<td align="left"><em class="parameter"><code>drive.removable.media</code></em></td>
 
128
<td align="left">If the object is a drive (or a block device that is part of a drive), this is set to the value of the <a class="link" href="gdbus-org.freedesktop.UDisks2.Drive.html#gdbus-property-org-freedesktop-UDisks2-Drive.MediaCompatibility" title='The "MediaCompatibility" property'>Drive:MediaCompatibility</a> property. This variable is set only if the value of the <a class="link" href="gdbus-org.freedesktop.UDisks2.Drive.html#gdbus-property-org-freedesktop-UDisks2-Drive.Removable" title='The "Removable" property'>Drive:Removable</a> property is <code class="constant">TRUE</code>.</td>
 
129
</tr>
 
130
<tr>
 
131
<td align="left"><em class="parameter"><code>id.type</code></em></td>
 
132
<td align="left">If the object is a block device, this property is set to the value of the <a class="link" href="gdbus-org.freedesktop.UDisks2.Block.html#gdbus-property-org-freedesktop-UDisks2-Block.IdType" title='The "IdType" property'>Block:IdType</a> property.</td>
 
133
</tr>
 
134
<tr>
 
135
<td align="left"><em class="parameter"><code>id.usage</code></em></td>
 
136
<td align="left">If the object is a block device, this property is set to the value of the <a class="link" href="gdbus-org.freedesktop.UDisks2.Block.html#gdbus-property-org-freedesktop-UDisks2-Block.IdUsage" title='The "IdUsage" property'>Block:IdUsage</a> property.</td>
 
137
</tr>
 
138
<tr>
 
139
<td align="left"><em class="parameter"><code>id.version</code></em></td>
 
140
<td align="left">If the object is a block device, this property is set to the value of the <a class="link" href="gdbus-org.freedesktop.UDisks2.Block.html#gdbus-property-org-freedesktop-UDisks2-Block.IdVersion" title='The "IdVersion" property'>Block:IdVersion</a> property.</td>
 
141
</tr>
 
142
<tr>
 
143
<td align="left"><em class="parameter"><code>id.label</code></em></td>
 
144
<td align="left">If the object is a block device, this property is set to the value of the <a class="link" href="gdbus-org.freedesktop.UDisks2.Block.html#gdbus-property-org-freedesktop-UDisks2-Block.IdLabel" title='The "IdLabel" property'>Block:IdLabel</a> property.</td>
 
145
</tr>
 
146
<tr>
 
147
<td align="left"><em class="parameter"><code>id.uuid</code></em></td>
 
148
<td align="left">If the object is a block device, this property is set to the value of the <a class="link" href="gdbus-org.freedesktop.UDisks2.Block.html#gdbus-property-org-freedesktop-UDisks2-Block.IdUUID" title='The "IdUUID" property'>Block:IdUUID</a> property.</td>
 
149
</tr>
 
150
<tr>
 
151
<td align="left"><em class="parameter"><code>partition.number</code></em></td>
 
152
<td align="left">If the object is a partition, this property is set to the value of the <a class="link" href="gdbus-org.freedesktop.UDisks2.Partition.html#gdbus-property-org-freedesktop-UDisks2-Partition.Number" title='The "Number" property'>Partition:Number</a> property.</td>
 
153
</tr>
 
154
<tr>
 
155
<td align="left"><em class="parameter"><code>partition.type</code></em></td>
 
156
<td align="left">If the object is a partition, this property is set to the value of the <a class="link" href="gdbus-org.freedesktop.UDisks2.Partition.html#gdbus-property-org-freedesktop-UDisks2-Partition.Type" title='The "Type" property'>Partition:Type</a> property.</td>
 
157
</tr>
 
158
<tr>
 
159
<td align="left"><em class="parameter"><code>partition.flags</code></em></td>
 
160
<td align="left">If the object is a partition, this property is set to the value of the <a class="link" href="gdbus-org.freedesktop.UDisks2.Partition.html#gdbus-property-org-freedesktop-UDisks2-Partition.Flags" title='The "Flags" property'>Partition:Flags</a> property.</td>
 
161
</tr>
 
162
<tr>
 
163
<td align="left"><em class="parameter"><code>partition.name</code></em></td>
 
164
<td align="left">If the object is a partition, this property is set to the value of the <a class="link" href="gdbus-org.freedesktop.UDisks2.Partition.html#gdbus-property-org-freedesktop-UDisks2-Partition.Name" title='The "Name" property'>Partition:Name</a> property.</td>
 
165
</tr>
 
166
<tr>
 
167
<td align="left"><em class="parameter"><code>partition.uuid</code></em></td>
 
168
<td align="left">If the object is a partition, this property is set to the value of the <a class="link" href="gdbus-org.freedesktop.UDisks2.Partition.html#gdbus-property-org-freedesktop-UDisks2-Partition.UUID" title='The "UUID" property'>Partition:UUID</a> property.</td>
 
169
</tr>
 
170
</tbody>
 
171
</table></div>
 
172
</div>
 
173
<br class="table-break"><p>
 
174
          For reference, the polkit actions defined by udisks 2.1.3
 
175
 
 
176
          are included here:
 
177
          </p>
 
178
<div class="informalexample">
 
179
<a name="udisks-polkit-actions-file"></a><pre class="programlisting">&lt;?xml version="1.0" encoding="utf-8"?&gt;
 
180
 
 
181
&lt;!DOCTYPE policyconfig PUBLIC
 
182
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 
183
 "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd"&gt;
 
184
 
 
185
&lt;policyconfig&gt;
 
186
  &lt;vendor&gt;The udisks Project&lt;/vendor&gt;
 
187
  &lt;vendor_url&gt;http://udisks.freedesktop.org/&lt;/vendor_url&gt;
 
188
  &lt;icon_name&gt;drive-removable-media&lt;/icon_name&gt;
 
189
 
 
190
  &lt;!-- ###################################################################### --&gt;
 
191
  &lt;!-- Mounting filesystems --&gt;
 
192
 
 
193
  &lt;action id="org.freedesktop.udisks2.filesystem-mount"&gt;
 
194
    &lt;_description&gt;Mount a filesystem&lt;/_description&gt;
 
195
    &lt;_message&gt;Authentication is required to mount the filesystem&lt;/_message&gt;
 
196
    &lt;defaults&gt;
 
197
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
198
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
199
      &lt;allow_active&gt;yes&lt;/allow_active&gt;
 
200
    &lt;/defaults&gt;
 
201
  &lt;/action&gt;
 
202
 
 
203
  &lt;!-- mount a device considered a "system device" --&gt;
 
204
  &lt;action id="org.freedesktop.udisks2.filesystem-mount-system"&gt;
 
205
    &lt;_description&gt;Mount a filesystem on a system device&lt;/_description&gt;
 
206
    &lt;_message&gt;Authentication is required to mount the filesystem&lt;/_message&gt;
 
207
    &lt;defaults&gt;
 
208
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
209
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
210
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
211
    &lt;/defaults&gt;
 
212
  &lt;/action&gt;
 
213
 
 
214
  &lt;!-- mount a device attached to another seat --&gt;
 
215
  &lt;action id="org.freedesktop.udisks2.filesystem-mount-other-seat"&gt;
 
216
    &lt;_description&gt;Mount a filesystem from a device plugged into another seat&lt;/_description&gt;
 
217
    &lt;_message&gt;Authentication is required to mount the filesystem&lt;/_message&gt;
 
218
    &lt;defaults&gt;
 
219
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
220
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
221
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
222
    &lt;/defaults&gt;
 
223
  &lt;/action&gt;
 
224
 
 
225
  &lt;!-- mount a device referenced in the /etc/fstab file with the x-udisks-auth option --&gt;
 
226
  &lt;action id="org.freedesktop.udisks2.filesystem-fstab"&gt;
 
227
    &lt;_description&gt;Mount/unmount filesystems defined in the fstab file with the x-udisks-auth option&lt;/_description&gt;
 
228
    &lt;_message&gt;Authentication is required to mount/unmount the filesystem&lt;/_message&gt;
 
229
    &lt;defaults&gt;
 
230
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
231
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
232
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
233
    &lt;/defaults&gt;
 
234
  &lt;/action&gt;
 
235
 
 
236
  &lt;!-- ###################################################################### --&gt;
 
237
  &lt;!-- Unmounting filesystems --&gt;
 
238
 
 
239
  &lt;!-- unmount a filesystem mounted by another user --&gt;
 
240
  &lt;action id="org.freedesktop.udisks2.filesystem-unmount-others"&gt;
 
241
    &lt;_description&gt;Unmount a device mounted by another user&lt;/_description&gt;
 
242
    &lt;_message&gt;Authentication is required to unmount a filesystem mounted by another user&lt;/_message&gt;
 
243
    &lt;defaults&gt;
 
244
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
245
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
246
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
247
    &lt;/defaults&gt;
 
248
  &lt;/action&gt;
 
249
 
 
250
  &lt;!-- ###################################################################### --&gt;
 
251
  &lt;!-- Unlocking encrypted devices --&gt;
 
252
 
 
253
  &lt;action id="org.freedesktop.udisks2.encrypted-unlock"&gt;
 
254
    &lt;_description&gt;Unlock an encrypted device&lt;/_description&gt;
 
255
    &lt;_message&gt;Authentication is required to unlock an encrypted device&lt;/_message&gt;
 
256
    &lt;defaults&gt;
 
257
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
258
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
259
      &lt;allow_active&gt;yes&lt;/allow_active&gt;
 
260
    &lt;/defaults&gt;
 
261
  &lt;/action&gt;
 
262
 
 
263
  &lt;!-- unlock a device considered a "system device" --&gt;
 
264
  &lt;action id="org.freedesktop.udisks2.encrypted-unlock-system"&gt;
 
265
    &lt;_description&gt;Unlock an encrypted system device&lt;/_description&gt;
 
266
    &lt;_message&gt;Authentication is required to unlock an encrypted device&lt;/_message&gt;
 
267
    &lt;defaults&gt;
 
268
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
269
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
270
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
271
    &lt;/defaults&gt;
 
272
  &lt;/action&gt;
 
273
 
 
274
  &lt;!-- mount a device attached to another seat --&gt;
 
275
  &lt;action id="org.freedesktop.udisks2.encrypted-unlock-other-seat"&gt;
 
276
    &lt;_description&gt;Unlock an encrypted device plugged into another seat&lt;/_description&gt;
 
277
    &lt;_message&gt;Authentication is required to unlock an encrypted device&lt;/_message&gt;
 
278
    &lt;defaults&gt;
 
279
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
280
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
281
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
282
    &lt;/defaults&gt;
 
283
  &lt;/action&gt;
 
284
 
 
285
  &lt;!-- unlock a device referenced in the /etc/crypttab file with the x-udisks-auth option --&gt;
 
286
  &lt;action id="org.freedesktop.udisks2.encrypted-unlock-crypttab"&gt;
 
287
    &lt;_description&gt;Unlock an encrypted device specified in the crypttab file with the x-udisks-auth option&lt;/_description&gt;
 
288
    &lt;_message&gt;Authentication is required to unlock an encrypted device&lt;/_message&gt;
 
289
    &lt;defaults&gt;
 
290
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
291
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
292
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
293
    &lt;/defaults&gt;
 
294
  &lt;/action&gt;
 
295
 
 
296
  &lt;!-- ###################################################################### --&gt;
 
297
  &lt;!-- Locking encrypted devices --&gt;
 
298
 
 
299
  &lt;!-- lock a device unlocked by another user --&gt;
 
300
  &lt;action id="org.freedesktop.udisks2.encrypted-lock-others"&gt;
 
301
    &lt;_description&gt;Lock an encrypted device unlocked by another user&lt;/_description&gt;
 
302
    &lt;_message&gt;Authentication is required to lock an encrypted device unlocked by another user&lt;/_message&gt;
 
303
    &lt;defaults&gt;
 
304
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
305
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
306
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
307
    &lt;/defaults&gt;
 
308
  &lt;/action&gt;
 
309
 
 
310
  &lt;!-- ###################################################################### --&gt;
 
311
  &lt;!-- Changing passphrases on encrypted devices --&gt;
 
312
 
 
313
  &lt;action id="org.freedesktop.udisks2.encrypted-change-passphrase"&gt;
 
314
    &lt;_description&gt;Change passphrase for an encrypted device&lt;/_description&gt;
 
315
    &lt;_message&gt;Authentication is required to change the passphrase for an encrypted device&lt;/_message&gt;
 
316
    &lt;defaults&gt;
 
317
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
318
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
319
      &lt;allow_active&gt;yes&lt;/allow_active&gt;
 
320
    &lt;/defaults&gt;
 
321
  &lt;/action&gt;
 
322
 
 
323
  &lt;!-- change passphrase on a device considered a "system device" --&gt;
 
324
  &lt;action id="org.freedesktop.udisks2.encrypted-change-passphrase-system"&gt;
 
325
    &lt;_description&gt;Change passphrase for an encrypted device&lt;/_description&gt;
 
326
    &lt;_message&gt;Authentication is required to change the passphrase for an encrypted device&lt;/_message&gt;
 
327
    &lt;defaults&gt;
 
328
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
329
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
330
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
331
    &lt;/defaults&gt;
 
332
  &lt;/action&gt;
 
333
 
 
334
  &lt;!-- ###################################################################### --&gt;
 
335
  &lt;!-- Setting up loop devices --&gt;
 
336
 
 
337
  &lt;action id="org.freedesktop.udisks2.loop-setup"&gt;
 
338
    &lt;_description&gt;Manage loop devices&lt;/_description&gt;
 
339
    &lt;_message&gt;Authentication is required to set up a loop device&lt;/_message&gt;
 
340
    &lt;defaults&gt;
 
341
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
342
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
343
      &lt;!-- NOTE: this is not a DoS because we are using /dev/loop-control --&gt;
 
344
      &lt;allow_active&gt;yes&lt;/allow_active&gt;
 
345
    &lt;/defaults&gt;
 
346
  &lt;/action&gt;
 
347
 
 
348
  &lt;!-- ###################################################################### --&gt;
 
349
  &lt;!-- Deleting and modifying loop devices --&gt;
 
350
 
 
351
  &lt;action id="org.freedesktop.udisks2.loop-delete-others"&gt;
 
352
    &lt;_description&gt;Delete loop devices&lt;/_description&gt;
 
353
    &lt;_message&gt;Authentication is required to delete a loop device set up by another user&lt;/_message&gt;
 
354
    &lt;defaults&gt;
 
355
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
356
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
357
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
358
    &lt;/defaults&gt;
 
359
  &lt;/action&gt;
 
360
 
 
361
  &lt;action id="org.freedesktop.udisks2.loop-modify-others"&gt;
 
362
    &lt;_description&gt;Modify loop devices&lt;/_description&gt;
 
363
    &lt;_message&gt;Authentication is required to modify a loop device set up by another user&lt;/_message&gt;
 
364
    &lt;defaults&gt;
 
365
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
366
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
367
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
368
    &lt;/defaults&gt;
 
369
  &lt;/action&gt;
 
370
 
 
371
  &lt;!-- ###################################################################### --&gt;
 
372
  &lt;!-- Manage (start/stop) swapspace --&gt;
 
373
 
 
374
  &lt;action id="org.freedesktop.udisks2.manage-swapspace"&gt;
 
375
    &lt;_description&gt;Manage swapspace&lt;/_description&gt;
 
376
    &lt;_message&gt;Authentication is required to manage swapspace&lt;/_message&gt;
 
377
    &lt;defaults&gt;
 
378
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
379
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
380
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
381
    &lt;/defaults&gt;
 
382
  &lt;/action&gt;
 
383
 
 
384
  &lt;!-- ###################################################################### --&gt;
 
385
  &lt;!-- Manage MD-RAID --&gt;
 
386
 
 
387
  &lt;action id="org.freedesktop.udisks2.manage-md-raid"&gt;
 
388
    &lt;_description&gt;Manage RAID arrays&lt;/_description&gt;
 
389
    &lt;_message&gt;Authentication is required to manage RAID arrays&lt;/_message&gt;
 
390
    &lt;defaults&gt;
 
391
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
392
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
393
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
394
    &lt;/defaults&gt;
 
395
  &lt;/action&gt;
 
396
 
 
397
  &lt;!-- ###################################################################### --&gt;
 
398
  &lt;!-- Power off drives --&gt;
 
399
 
 
400
  &lt;action id="org.freedesktop.udisks2.power-off-drive"&gt;
 
401
    &lt;_description&gt;Power off drive&lt;/_description&gt;
 
402
    &lt;_message&gt;Authentication is required to power off a drive&lt;/_message&gt;
 
403
    &lt;defaults&gt;
 
404
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
405
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
406
      &lt;allow_active&gt;yes&lt;/allow_active&gt;
 
407
    &lt;/defaults&gt;
 
408
  &lt;/action&gt;
 
409
 
 
410
  &lt;!-- Power off a drive considered a "system device" --&gt;
 
411
  &lt;action id="org.freedesktop.udisks2.power-off-drive-system"&gt;
 
412
    &lt;_description&gt;Power off a system drive&lt;/_description&gt;
 
413
    &lt;_message&gt;Authentication is required to power off a drive&lt;/_message&gt;
 
414
    &lt;defaults&gt;
 
415
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
416
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
417
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
418
    &lt;/defaults&gt;
 
419
  &lt;/action&gt;
 
420
 
 
421
  &lt;!-- Power off a drive attached to another seat --&gt;
 
422
  &lt;action id="org.freedesktop.udisks2.power-off-drive-other-seat"&gt;
 
423
    &lt;_description&gt;Power off a drive attached to another seat&lt;/_description&gt;
 
424
    &lt;_message&gt;Authentication is required to power off a drive plugged into another seat&lt;/_message&gt;
 
425
    &lt;defaults&gt;
 
426
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
427
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
428
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
429
    &lt;/defaults&gt;
 
430
  &lt;/action&gt;
 
431
 
 
432
  &lt;!-- ###################################################################### --&gt;
 
433
  &lt;!-- Eject media from a drive --&gt;
 
434
 
 
435
  &lt;action id="org.freedesktop.udisks2.eject-media"&gt;
 
436
    &lt;_description&gt;Eject media&lt;/_description&gt;
 
437
    &lt;_message&gt;Authentication is required to eject media&lt;/_message&gt;
 
438
    &lt;defaults&gt;
 
439
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
440
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
441
      &lt;allow_active&gt;yes&lt;/allow_active&gt;
 
442
    &lt;/defaults&gt;
 
443
  &lt;/action&gt;
 
444
 
 
445
  &lt;!-- eject media from a drive considered a "system device" --&gt;
 
446
  &lt;action id="org.freedesktop.udisks2.eject-media-system"&gt;
 
447
    &lt;_description&gt;Eject media from a system drive&lt;/_description&gt;
 
448
    &lt;_message&gt;Authentication is required to eject media&lt;/_message&gt;
 
449
    &lt;defaults&gt;
 
450
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
451
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
452
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
453
    &lt;/defaults&gt;
 
454
  &lt;/action&gt;
 
455
 
 
456
  &lt;!-- eject media from a drive attached to another seat --&gt;
 
457
  &lt;action id="org.freedesktop.udisks2.eject-media-other-seat"&gt;
 
458
    &lt;_description&gt;Eject media from a drive attached to another seat&lt;/_description&gt;
 
459
    &lt;_message&gt;Authentication is required to eject media from a drive plugged into another seat&lt;/_message&gt;
 
460
    &lt;defaults&gt;
 
461
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
462
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
463
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
464
    &lt;/defaults&gt;
 
465
  &lt;/action&gt;
 
466
 
 
467
  &lt;!-- ###################################################################### --&gt;
 
468
  &lt;!-- Modify a device (create new filesystem, partitioning, change FS label etc.) --&gt;
 
469
 
 
470
  &lt;action id="org.freedesktop.udisks2.modify-device"&gt;
 
471
    &lt;_description&gt;Modify a device&lt;/_description&gt;
 
472
    &lt;_message&gt;Authentication is required to modify a device&lt;/_message&gt;
 
473
    &lt;defaults&gt;
 
474
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
475
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
476
      &lt;allow_active&gt;yes&lt;/allow_active&gt;
 
477
    &lt;/defaults&gt;
 
478
  &lt;/action&gt;
 
479
 
 
480
  &lt;!-- modify a device considered a "system device" --&gt;
 
481
  &lt;action id="org.freedesktop.udisks2.modify-device-system"&gt;
 
482
    &lt;_description&gt;Modify a system device&lt;/_description&gt;
 
483
    &lt;_message&gt;Authentication is required to modify a device&lt;/_message&gt;
 
484
    &lt;defaults&gt;
 
485
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
486
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
487
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
488
    &lt;/defaults&gt;
 
489
  &lt;/action&gt;
 
490
 
 
491
  &lt;!-- modify a device attached to another seat --&gt;
 
492
  &lt;action id="org.freedesktop.udisks2.modify-device-other-seat"&gt;
 
493
    &lt;_description&gt;Modify a device&lt;/_description&gt;
 
494
    &lt;_message&gt;Authentication is required to modify a device plugged into another seat&lt;/_message&gt;
 
495
    &lt;defaults&gt;
 
496
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
497
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
498
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
499
    &lt;/defaults&gt;
 
500
  &lt;/action&gt;
 
501
 
 
502
  &lt;!-- rescan a device --&gt;
 
503
  &lt;action id="org.freedesktop.udisks2.rescan"&gt;
 
504
    &lt;_description&gt;Rescan a device&lt;/_description&gt;
 
505
    &lt;_message&gt;Authentication is to rescan a device&lt;/_message&gt;
 
506
    &lt;defaults&gt;
 
507
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
508
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
509
      &lt;allow_active&gt;yes&lt;/allow_active&gt;
 
510
    &lt;/defaults&gt;
 
511
  &lt;/action&gt;
 
512
 
 
513
  &lt;!-- ###################################################################### --&gt;
 
514
  &lt;!-- Open a device for reading (for creating / restoring disk images) --&gt;
 
515
 
 
516
  &lt;action id="org.freedesktop.udisks2.open-device"&gt;
 
517
    &lt;_description&gt;Open a device&lt;/_description&gt;
 
518
    &lt;_message&gt;Authentication is required to open a device&lt;/_message&gt;
 
519
    &lt;defaults&gt;
 
520
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
521
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
522
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
523
    &lt;/defaults&gt;
 
524
  &lt;/action&gt;
 
525
 
 
526
  &lt;action id="org.freedesktop.udisks2.open-device-system"&gt;
 
527
    &lt;_description&gt;Open a system device&lt;/_description&gt;
 
528
    &lt;_message&gt;Authentication is required to open a device&lt;/_message&gt;
 
529
    &lt;defaults&gt;
 
530
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
531
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
532
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
533
    &lt;/defaults&gt;
 
534
  &lt;/action&gt;
 
535
 
 
536
  &lt;!-- ###################################################################### --&gt;
 
537
  &lt;!-- Manage system-wide configuration files such as /etc/fstab or
 
538
       /etc/crypttab ... including files referenced by these files.
 
539
 
 
540
       IMPORTANT: It is not secure to automatically grant authority
 
541
       for this action to groups of users. Neither is it secure to
 
542
       to allow a process to retain the authorization (e.g. don't
 
543
       use the _keep variants).
 
544
  --&gt;
 
545
 
 
546
  &lt;action id="org.freedesktop.udisks2.modify-system-configuration"&gt;
 
547
    &lt;_description&gt;Modify system-wide configuration&lt;/_description&gt;
 
548
    &lt;_message&gt;Authentication is required to modify system-wide configuration&lt;/_message&gt;
 
549
    &lt;defaults&gt;
 
550
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
551
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
552
      &lt;allow_active&gt;auth_admin&lt;/allow_active&gt;
 
553
    &lt;/defaults&gt;
 
554
  &lt;/action&gt;
 
555
 
 
556
  &lt;!-- Get secrets from system-wide configuration files --&gt;
 
557
  &lt;action id="org.freedesktop.udisks2.read-system-configuration-secrets"&gt;
 
558
    &lt;_description&gt;Modify system-wide configuration&lt;/_description&gt;
 
559
    &lt;_message&gt;Authentication is required to retrieve secrets from system-wide configuration&lt;/_message&gt;
 
560
    &lt;defaults&gt;
 
561
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
562
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
563
      &lt;allow_active&gt;auth_admin&lt;/allow_active&gt;
 
564
    &lt;/defaults&gt;
 
565
  &lt;/action&gt;
 
566
 
 
567
  &lt;!-- ###################################################################### --&gt;
 
568
  &lt;!-- Drive configuration (Power Management, Acustics, etc.) --&gt;
 
569
 
 
570
  &lt;action id="org.freedesktop.udisks2.modify-drive-settings"&gt;
 
571
    &lt;_description&gt;Modify drive settings&lt;/_description&gt;
 
572
    &lt;_message&gt;Authentication is required to modify drive settings&lt;/_message&gt;
 
573
    &lt;defaults&gt;
 
574
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
575
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
576
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
577
    &lt;/defaults&gt;
 
578
  &lt;/action&gt;
 
579
 
 
580
  &lt;!-- ###################################################################### --&gt;
 
581
  &lt;!-- ATA SMART --&gt;
 
582
 
 
583
  &lt;!-- Update/refresh SMART data --&gt;
 
584
  &lt;action id="org.freedesktop.udisks2.ata-smart-update"&gt;
 
585
    &lt;_description&gt;Update SMART data&lt;/_description&gt;
 
586
    &lt;_message&gt;Authentication is required to update SMART data&lt;/_message&gt;
 
587
    &lt;defaults&gt;
 
588
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
589
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
590
      &lt;allow_active&gt;yes&lt;/allow_active&gt;
 
591
    &lt;/defaults&gt;
 
592
  &lt;/action&gt;
 
593
 
 
594
  &lt;!-- Set SMART data from blob --&gt;
 
595
  &lt;action id="org.freedesktop.udisks2.ata-smart-simulate"&gt;
 
596
    &lt;_description&gt;Set SMART data from blob&lt;/_description&gt;
 
597
    &lt;_message&gt;Authentication is required to set SMART data from blob&lt;/_message&gt;
 
598
    &lt;defaults&gt;
 
599
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
600
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
601
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
602
    &lt;/defaults&gt;
 
603
  &lt;/action&gt;
 
604
 
 
605
  &lt;!-- Start and abort SMART self-tests --&gt;
 
606
  &lt;action id="org.freedesktop.udisks2.ata-smart-selftest"&gt;
 
607
    &lt;_description&gt;Run SMART self-test&lt;/_description&gt;
 
608
    &lt;_message&gt;Authentication is required to run a SMART self-test&lt;/_message&gt;
 
609
    &lt;defaults&gt;
 
610
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
611
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
612
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
613
    &lt;/defaults&gt;
 
614
  &lt;/action&gt;
 
615
 
 
616
  &lt;!-- Enable/Disable SMART --&gt;
 
617
  &lt;action id="org.freedesktop.udisks2.ata-smart-enable-disable"&gt;
 
618
    &lt;_description&gt;Enable/Disable SMART&lt;/_description&gt;
 
619
    &lt;_message&gt;Authentication is required to enable/disable SMART&lt;/_message&gt;
 
620
    &lt;defaults&gt;
 
621
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
622
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
623
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
624
    &lt;/defaults&gt;
 
625
  &lt;/action&gt;
 
626
 
 
627
  &lt;!-- ###################################################################### --&gt;
 
628
  &lt;!-- ATA Power Management --&gt;
 
629
 
 
630
  &lt;!-- Check power state --&gt;
 
631
  &lt;action id="org.freedesktop.udisks2.ata-check-power"&gt;
 
632
    &lt;_description&gt;Check power state&lt;/_description&gt;
 
633
    &lt;_message&gt;Authentication is required to check the power state&lt;/_message&gt;
 
634
    &lt;defaults&gt;
 
635
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
636
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
637
      &lt;allow_active&gt;yes&lt;/allow_active&gt;
 
638
    &lt;/defaults&gt;
 
639
  &lt;/action&gt;
 
640
 
 
641
  &lt;!-- Send standby command / resume from standby --&gt;
 
642
  &lt;action id="org.freedesktop.udisks2.ata-standby"&gt;
 
643
    &lt;_description&gt;Send standby command&lt;/_description&gt;
 
644
    &lt;_message&gt;Authentication is required to put a drive into standby mode&lt;/_message&gt;
 
645
    &lt;defaults&gt;
 
646
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
647
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
648
      &lt;allow_active&gt;yes&lt;/allow_active&gt;
 
649
    &lt;/defaults&gt;
 
650
  &lt;/action&gt;
 
651
 
 
652
  &lt;!-- Send standby command / resume from standby to a drive considered a "system device" --&gt;
 
653
  &lt;action id="org.freedesktop.udisks2.ata-standby-system"&gt;
 
654
    &lt;_description&gt;Send standby command to a system drive&lt;/_description&gt;
 
655
    &lt;_message&gt;Authentication is required to put a drive into standby mode&lt;/_message&gt;
 
656
    &lt;defaults&gt;
 
657
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
658
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
659
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
660
    &lt;/defaults&gt;
 
661
  &lt;/action&gt;
 
662
 
 
663
  &lt;!-- Send standby command  / resume from standby to a drive on another seat --&gt;
 
664
  &lt;action id="org.freedesktop.udisks2.ata-standby-other-seat"&gt;
 
665
    &lt;_description&gt;Send standby command to drive on other seat&lt;/_description&gt;
 
666
    &lt;_message&gt;Authentication is required to put a drive into standby mode&lt;/_message&gt;
 
667
    &lt;defaults&gt;
 
668
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
669
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
670
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
671
    &lt;/defaults&gt;
 
672
  &lt;/action&gt;
 
673
 
 
674
  &lt;!-- ###################################################################### --&gt;
 
675
  &lt;!-- ATA Secure Erase --&gt;
 
676
 
 
677
  &lt;!-- Send SECURE ERASE UNIT command --&gt;
 
678
  &lt;action id="org.freedesktop.udisks2.ata-secure-erase"&gt;
 
679
    &lt;_description&gt;Securely erase a hard disk&lt;/_description&gt;
 
680
    &lt;_message&gt;Authentication is required to securely erase a hard disk&lt;/_message&gt;
 
681
    &lt;defaults&gt;
 
682
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
683
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
684
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
685
    &lt;/defaults&gt;
 
686
  &lt;/action&gt;
 
687
 
 
688
  &lt;!-- ###################################################################### --&gt;
 
689
  &lt;!-- Canceling jobs --&gt;
 
690
 
 
691
  &lt;!-- Cancel own job --&gt;
 
692
  &lt;action id="org.freedesktop.udisks2.cancel-job"&gt;
 
693
    &lt;_description&gt;Cancel job&lt;/_description&gt;
 
694
    &lt;_message&gt;Authentication is required to cancel a job&lt;/_message&gt;
 
695
    &lt;defaults&gt;
 
696
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
697
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
698
      &lt;allow_active&gt;yes&lt;/allow_active&gt;
 
699
    &lt;/defaults&gt;
 
700
  &lt;/action&gt;
 
701
 
 
702
  &lt;!-- Cancel job initiated by other user --&gt;
 
703
  &lt;action id="org.freedesktop.udisks2.cancel-job-other-user"&gt;
 
704
    &lt;_description&gt;Cancel job started by another user&lt;/_description&gt;
 
705
    &lt;_message&gt;Authentication is required to cancel a job started by another user&lt;/_message&gt;
 
706
    &lt;defaults&gt;
 
707
      &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
 
708
      &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
 
709
      &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
 
710
    &lt;/defaults&gt;
 
711
  &lt;/action&gt;
 
712
 
 
713
&lt;/policyconfig&gt;
 
714
</pre>
 
715
</div>
 
716
<p>
 
717
        </p>
 
718
</div>
 
719
<div class="footer">
 
720
<hr>
 
721
          Generated by GTK-Doc V1.20</div>
 
722
</body>
 
723
</html>
 
 
b'\\ No newline at end of file'