Debian Codegraph @

doc/html/udisks-polkit-actions.html

raw
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>Authorization Checks: UDisks Reference Manual</title>
6 <meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
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.35.1 (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="5"><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 class="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.11.1
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;https://github.com/storaged-project/udisks&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 on behalf of another user --&gt;
226 &lt;action id="org.freedesktop.udisks2.filesystem-mount-other-user"&gt;
227 &lt;description&gt;Mount a filesystem on behalf of another user&lt;/description&gt;
228 &lt;message&gt;Authentication is required to mount 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;!-- mount a device referenced in the /etc/fstab file with the x-udisks-auth option --&gt;
237 &lt;action id="org.freedesktop.udisks2.filesystem-fstab"&gt;
238 &lt;description&gt;Mount/unmount filesystems defined in the fstab file with the x-udisks-auth option&lt;/description&gt;
239 &lt;message&gt;Authentication is required to mount/unmount the filesystem&lt;/message&gt;
240 &lt;defaults&gt;
241 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
242 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
243 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
244 &lt;/defaults&gt;
245 &lt;/action&gt;
246
247 &lt;!-- ###################################################################### --&gt;
248 &lt;!-- Unmounting filesystems --&gt;
249
250 &lt;!-- unmount a filesystem mounted by another user --&gt;
251 &lt;action id="org.freedesktop.udisks2.filesystem-unmount-others"&gt;
252 &lt;description&gt;Unmount a device mounted by another user&lt;/description&gt;
253 &lt;message&gt;Authentication is required to unmount a filesystem mounted by another user&lt;/message&gt;
254 &lt;defaults&gt;
255 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
256 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
257 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
258 &lt;/defaults&gt;
259 &lt;/action&gt;
260
261 &lt;!-- ###################################################################### --&gt;
262 &lt;!-- Taking ownership of filesystems --&gt;
263
264 &lt;action id="org.freedesktop.udisks2.filesystem-take-ownership"&gt;
265 &lt;description&gt;Take ownership of a filesystem&lt;/description&gt;
266 &lt;message&gt;Authentication is required to take ownership of a filesystem.&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;!-- ###################################################################### --&gt;
275 &lt;!-- Unlocking encrypted devices --&gt;
276
277 &lt;action id="org.freedesktop.udisks2.encrypted-unlock"&gt;
278 &lt;description&gt;Unlock an encrypted device&lt;/description&gt;
279 &lt;message&gt;Authentication is required to unlock an encrypted device&lt;/message&gt;
280 &lt;defaults&gt;
281 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
282 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
283 &lt;allow_active&gt;yes&lt;/allow_active&gt;
284 &lt;/defaults&gt;
285 &lt;/action&gt;
286
287 &lt;!-- unlock a device considered a "system device" --&gt;
288 &lt;action id="org.freedesktop.udisks2.encrypted-unlock-system"&gt;
289 &lt;description&gt;Unlock an encrypted system device&lt;/description&gt;
290 &lt;message&gt;Authentication is required to unlock an encrypted device&lt;/message&gt;
291 &lt;defaults&gt;
292 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
293 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
294 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
295 &lt;/defaults&gt;
296 &lt;/action&gt;
297
298 &lt;!-- unlock a device attached to another seat --&gt;
299 &lt;action id="org.freedesktop.udisks2.encrypted-unlock-other-seat"&gt;
300 &lt;description&gt;Unlock an encrypted device plugged into another seat&lt;/description&gt;
301 &lt;message&gt;Authentication is required to unlock an encrypted device&lt;/message&gt;
302 &lt;defaults&gt;
303 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
304 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
305 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
306 &lt;/defaults&gt;
307 &lt;/action&gt;
308
309 &lt;!-- unlock a device referenced in the /etc/crypttab file with the x-udisks-auth option --&gt;
310 &lt;action id="org.freedesktop.udisks2.encrypted-unlock-crypttab"&gt;
311 &lt;description&gt;Unlock an encrypted device specified in the crypttab file with the x-udisks-auth option&lt;/description&gt;
312 &lt;message&gt;Authentication is required to unlock an encrypted device&lt;/message&gt;
313 &lt;defaults&gt;
314 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
315 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
316 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
317 &lt;/defaults&gt;
318 &lt;/action&gt;
319
320 &lt;!-- ###################################################################### --&gt;
321 &lt;!-- Locking encrypted devices --&gt;
322
323 &lt;!-- lock a device unlocked by another user --&gt;
324 &lt;action id="org.freedesktop.udisks2.encrypted-lock-others"&gt;
325 &lt;description&gt;Lock an encrypted device unlocked by another user&lt;/description&gt;
326 &lt;message&gt;Authentication is required to lock an encrypted device unlocked by another user&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;!-- Changing passphrases on encrypted devices --&gt;
336
337 &lt;action id="org.freedesktop.udisks2.encrypted-change-passphrase"&gt;
338 &lt;description&gt;Change passphrase for an encrypted device&lt;/description&gt;
339 &lt;message&gt;Authentication is required to change the passphrase for an encrypted 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;allow_active&gt;yes&lt;/allow_active&gt;
344 &lt;/defaults&gt;
345 &lt;/action&gt;
346
347 &lt;!-- change passphrase on a device considered a "system device" --&gt;
348 &lt;action id="org.freedesktop.udisks2.encrypted-change-passphrase-system"&gt;
349 &lt;description&gt;Change passphrase for an encrypted device&lt;/description&gt;
350 &lt;message&gt;Authentication is required to change the passphrase for an encrypted device&lt;/message&gt;
351 &lt;defaults&gt;
352 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
353 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
354 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
355 &lt;/defaults&gt;
356 &lt;/action&gt;
357
358 &lt;!-- ###################################################################### --&gt;
359 &lt;!-- Setting up loop devices --&gt;
360
361 &lt;action id="org.freedesktop.udisks2.loop-setup"&gt;
362 &lt;description&gt;Manage loop devices&lt;/description&gt;
363 &lt;message&gt;Authentication is required to set up a loop device&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;!-- NOTE: this is not a DoS because we are using /dev/loop-control --&gt;
368 &lt;allow_active&gt;yes&lt;/allow_active&gt;
369 &lt;/defaults&gt;
370 &lt;/action&gt;
371
372 &lt;!-- ###################################################################### --&gt;
373 &lt;!-- Deleting and modifying loop devices --&gt;
374
375 &lt;action id="org.freedesktop.udisks2.loop-delete-others"&gt;
376 &lt;description&gt;Delete loop devices&lt;/description&gt;
377 &lt;message&gt;Authentication is required to delete a loop device set up by another user&lt;/message&gt;
378 &lt;defaults&gt;
379 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
380 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
381 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
382 &lt;/defaults&gt;
383 &lt;/action&gt;
384
385 &lt;action id="org.freedesktop.udisks2.loop-modify-others"&gt;
386 &lt;description&gt;Modify loop devices&lt;/description&gt;
387 &lt;message&gt;Authentication is required to modify a loop device set up by another user&lt;/message&gt;
388 &lt;defaults&gt;
389 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
390 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
391 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
392 &lt;/defaults&gt;
393 &lt;/action&gt;
394
395 &lt;!-- ###################################################################### --&gt;
396 &lt;!-- Manage (start/stop) swapspace --&gt;
397
398 &lt;action id="org.freedesktop.udisks2.manage-swapspace"&gt;
399 &lt;description&gt;Manage swapspace&lt;/description&gt;
400 &lt;message&gt;Authentication is required to manage swapspace&lt;/message&gt;
401 &lt;defaults&gt;
402 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
403 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
404 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
405 &lt;/defaults&gt;
406 &lt;/action&gt;
407
408 &lt;!-- ###################################################################### --&gt;
409 &lt;!-- Manage MD-RAID --&gt;
410
411 &lt;action id="org.freedesktop.udisks2.manage-md-raid"&gt;
412 &lt;description&gt;Manage RAID arrays&lt;/description&gt;
413 &lt;message&gt;Authentication is required to manage RAID arrays&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;!-- ###################################################################### --&gt;
422 &lt;!-- Power off drives --&gt;
423
424 &lt;action id="org.freedesktop.udisks2.power-off-drive"&gt;
425 &lt;description&gt;Power off drive&lt;/description&gt;
426 &lt;message&gt;Authentication is required to power off a drive&lt;/message&gt;
427 &lt;defaults&gt;
428 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
429 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
430 &lt;allow_active&gt;yes&lt;/allow_active&gt;
431 &lt;/defaults&gt;
432 &lt;/action&gt;
433
434 &lt;!-- Power off a drive considered a "system device" --&gt;
435 &lt;action id="org.freedesktop.udisks2.power-off-drive-system"&gt;
436 &lt;description&gt;Power off a system drive&lt;/description&gt;
437 &lt;message&gt;Authentication is required to power off a drive&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;auth_admin_keep&lt;/allow_active&gt;
442 &lt;/defaults&gt;
443 &lt;/action&gt;
444
445 &lt;!-- Power off a drive attached to another seat --&gt;
446 &lt;action id="org.freedesktop.udisks2.power-off-drive-other-seat"&gt;
447 &lt;description&gt;Power off a drive attached to another seat&lt;/description&gt;
448 &lt;message&gt;Authentication is required to power off a drive plugged into another seat&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;!-- ###################################################################### --&gt;
457 &lt;!-- Eject media from a drive --&gt;
458
459 &lt;action id="org.freedesktop.udisks2.eject-media"&gt;
460 &lt;description&gt;Eject media&lt;/description&gt;
461 &lt;message&gt;Authentication is required to eject media&lt;/message&gt;
462 &lt;defaults&gt;
463 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
464 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
465 &lt;allow_active&gt;yes&lt;/allow_active&gt;
466 &lt;/defaults&gt;
467 &lt;/action&gt;
468
469 &lt;!-- eject media from a drive considered a "system device" --&gt;
470 &lt;action id="org.freedesktop.udisks2.eject-media-system"&gt;
471 &lt;description&gt;Eject media from a system drive&lt;/description&gt;
472 &lt;message&gt;Authentication is required to eject media&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;auth_admin_keep&lt;/allow_active&gt;
477 &lt;/defaults&gt;
478 &lt;/action&gt;
479
480 &lt;!-- eject media from a drive attached to another seat --&gt;
481 &lt;action id="org.freedesktop.udisks2.eject-media-other-seat"&gt;
482 &lt;description&gt;Eject media from a drive attached to another seat&lt;/description&gt;
483 &lt;message&gt;Authentication is required to eject media from a drive plugged into another seat&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;!-- ###################################################################### --&gt;
492 &lt;!-- Modify a device (create new filesystem, partitioning, change FS label etc.) --&gt;
493
494 &lt;action id="org.freedesktop.udisks2.modify-device"&gt;
495 &lt;description&gt;Modify a device&lt;/description&gt;
496 &lt;message&gt;Authentication is required to modify a device&lt;/message&gt;
497 &lt;defaults&gt;
498 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
499 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
500 &lt;allow_active&gt;yes&lt;/allow_active&gt;
501 &lt;/defaults&gt;
502 &lt;/action&gt;
503
504 &lt;!-- modify a device considered a "system device" --&gt;
505 &lt;action id="org.freedesktop.udisks2.modify-device-system"&gt;
506 &lt;description&gt;Modify a system device&lt;/description&gt;
507 &lt;message&gt;Authentication is required to modify a device&lt;/message&gt;
508 &lt;defaults&gt;
509 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
510 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
511 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
512 &lt;/defaults&gt;
513 &lt;/action&gt;
514
515 &lt;!-- modify a device attached to another seat --&gt;
516 &lt;action id="org.freedesktop.udisks2.modify-device-other-seat"&gt;
517 &lt;description&gt;Modify a device&lt;/description&gt;
518 &lt;message&gt;Authentication is required to modify a device plugged into another seat&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;!-- rescan a device --&gt;
527 &lt;action id="org.freedesktop.udisks2.rescan"&gt;
528 &lt;description&gt;Rescan a device&lt;/description&gt;
529 &lt;message&gt;Authentication is required to rescan a device&lt;/message&gt;
530 &lt;defaults&gt;
531 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
532 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
533 &lt;allow_active&gt;yes&lt;/allow_active&gt;
534 &lt;/defaults&gt;
535 &lt;/action&gt;
536
537 &lt;!-- ###################################################################### --&gt;
538 &lt;!-- Open a device for reading (for creating / restoring disk images) --&gt;
539
540 &lt;action id="org.freedesktop.udisks2.open-device"&gt;
541 &lt;description&gt;Open a device&lt;/description&gt;
542 &lt;message&gt;Authentication is required to open a device&lt;/message&gt;
543 &lt;defaults&gt;
544 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
545 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
546 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
547 &lt;/defaults&gt;
548 &lt;/action&gt;
549
550 &lt;action id="org.freedesktop.udisks2.open-device-system"&gt;
551 &lt;description&gt;Open a system device&lt;/description&gt;
552 &lt;message&gt;Authentication is required to open a device&lt;/message&gt;
553 &lt;defaults&gt;
554 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
555 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
556 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
557 &lt;/defaults&gt;
558 &lt;/action&gt;
559
560 &lt;!-- ###################################################################### --&gt;
561 &lt;!-- Manage system-wide configuration files such as /etc/fstab or
562 /etc/crypttab ... including files referenced by these files.
563
564 IMPORTANT: It is not secure to automatically grant authority
565 for this action to groups of users. Neither is it secure to
566 to allow a process to retain the authorization (e.g. don't
567 use the _keep variants).
568 --&gt;
569
570 &lt;action id="org.freedesktop.udisks2.modify-system-configuration"&gt;
571 &lt;description&gt;Modify system-wide configuration&lt;/description&gt;
572 &lt;message&gt;Authentication is required to modify system-wide configuration&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&lt;/allow_active&gt;
577 &lt;/defaults&gt;
578 &lt;/action&gt;
579
580 &lt;!-- Get secrets from system-wide configuration files --&gt;
581 &lt;action id="org.freedesktop.udisks2.read-system-configuration-secrets"&gt;
582 &lt;description&gt;Modify system-wide configuration&lt;/description&gt;
583 &lt;message&gt;Authentication is required to retrieve secrets from system-wide configuration&lt;/message&gt;
584 &lt;defaults&gt;
585 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
586 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
587 &lt;allow_active&gt;auth_admin&lt;/allow_active&gt;
588 &lt;/defaults&gt;
589 &lt;/action&gt;
590
591 &lt;!-- ###################################################################### --&gt;
592 &lt;!-- Drive configuration (Power Management, Acoustics, etc.) --&gt;
593
594 &lt;action id="org.freedesktop.udisks2.modify-drive-settings"&gt;
595 &lt;description&gt;Modify drive settings&lt;/description&gt;
596 &lt;message&gt;Authentication is required to modify drive settings&lt;/message&gt;
597 &lt;defaults&gt;
598 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
599 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
600 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
601 &lt;/defaults&gt;
602 &lt;/action&gt;
603
604 &lt;!-- ###################################################################### --&gt;
605 &lt;!-- ATA SMART --&gt;
606
607 &lt;!-- Update/refresh SMART data --&gt;
608 &lt;action id="org.freedesktop.udisks2.ata-smart-update"&gt;
609 &lt;description&gt;Update SMART data&lt;/description&gt;
610 &lt;message&gt;Authentication is required to update SMART data&lt;/message&gt;
611 &lt;defaults&gt;
612 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
613 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
614 &lt;allow_active&gt;yes&lt;/allow_active&gt;
615 &lt;/defaults&gt;
616 &lt;/action&gt;
617
618 &lt;!-- Set SMART data from blob --&gt;
619 &lt;action id="org.freedesktop.udisks2.ata-smart-simulate"&gt;
620 &lt;description&gt;Set SMART data from blob&lt;/description&gt;
621 &lt;message&gt;Authentication is required to set SMART data from blob&lt;/message&gt;
622 &lt;defaults&gt;
623 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
624 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
625 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
626 &lt;/defaults&gt;
627 &lt;/action&gt;
628
629 &lt;!-- Start and abort SMART self-tests --&gt;
630 &lt;action id="org.freedesktop.udisks2.ata-smart-selftest"&gt;
631 &lt;description&gt;Run SMART self-test&lt;/description&gt;
632 &lt;message&gt;Authentication is required to run a SMART self-test&lt;/message&gt;
633 &lt;defaults&gt;
634 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
635 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
636 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
637 &lt;/defaults&gt;
638 &lt;/action&gt;
639
640 &lt;!-- Enable/Disable SMART --&gt;
641 &lt;action id="org.freedesktop.udisks2.ata-smart-enable-disable"&gt;
642 &lt;description&gt;Enable/Disable SMART&lt;/description&gt;
643 &lt;message&gt;Authentication is required to enable/disable SMART&lt;/message&gt;
644 &lt;defaults&gt;
645 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
646 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
647 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
648 &lt;/defaults&gt;
649 &lt;/action&gt;
650
651 &lt;!-- ###################################################################### --&gt;
652 &lt;!-- ATA Power Management --&gt;
653
654 &lt;!-- Check power state --&gt;
655 &lt;action id="org.freedesktop.udisks2.ata-check-power"&gt;
656 &lt;description&gt;Check power state&lt;/description&gt;
657 &lt;message&gt;Authentication is required to check the power state&lt;/message&gt;
658 &lt;defaults&gt;
659 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
660 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
661 &lt;allow_active&gt;yes&lt;/allow_active&gt;
662 &lt;/defaults&gt;
663 &lt;/action&gt;
664
665 &lt;!-- Send standby command / resume from standby --&gt;
666 &lt;action id="org.freedesktop.udisks2.ata-standby"&gt;
667 &lt;description&gt;Send standby command&lt;/description&gt;
668 &lt;message&gt;Authentication is required to put a drive into standby mode&lt;/message&gt;
669 &lt;defaults&gt;
670 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
671 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
672 &lt;allow_active&gt;yes&lt;/allow_active&gt;
673 &lt;/defaults&gt;
674 &lt;/action&gt;
675
676 &lt;!-- Send standby command / resume from standby to a drive considered a "system device" --&gt;
677 &lt;action id="org.freedesktop.udisks2.ata-standby-system"&gt;
678 &lt;description&gt;Send standby command to a system drive&lt;/description&gt;
679 &lt;message&gt;Authentication is required to put a drive into standby mode&lt;/message&gt;
680 &lt;defaults&gt;
681 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
682 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
683 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
684 &lt;/defaults&gt;
685 &lt;/action&gt;
686
687 &lt;!-- Send standby command / resume from standby to a drive on another seat --&gt;
688 &lt;action id="org.freedesktop.udisks2.ata-standby-other-seat"&gt;
689 &lt;description&gt;Send standby command to drive on other seat&lt;/description&gt;
690 &lt;message&gt;Authentication is required to put a drive into standby mode&lt;/message&gt;
691 &lt;defaults&gt;
692 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
693 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
694 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
695 &lt;/defaults&gt;
696 &lt;/action&gt;
697
698 &lt;!-- ###################################################################### --&gt;
699 &lt;!-- ATA Secure Erase --&gt;
700
701 &lt;!-- Send SECURE ERASE UNIT command --&gt;
702 &lt;action id="org.freedesktop.udisks2.ata-secure-erase"&gt;
703 &lt;description&gt;Securely erase a hard disk&lt;/description&gt;
704 &lt;message&gt;Authentication is required to securely erase a hard disk&lt;/message&gt;
705 &lt;defaults&gt;
706 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
707 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
708 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
709 &lt;/defaults&gt;
710 &lt;/action&gt;
711
712 &lt;!-- ###################################################################### --&gt;
713 &lt;!-- NVMe Controller operations --&gt;
714
715 &lt;!-- Update/refresh SMART data --&gt;
716 &lt;action id="org.freedesktop.udisks2.nvme-smart-update"&gt;
717 &lt;description&gt;Update SMART data&lt;/description&gt;
718 &lt;message&gt;Authentication is required to update SMART data&lt;/message&gt;
719 &lt;defaults&gt;
720 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
721 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
722 &lt;allow_active&gt;yes&lt;/allow_active&gt;
723 &lt;/defaults&gt;
724 &lt;/action&gt;
725
726 &lt;!-- Start and abort SMART self-tests --&gt;
727 &lt;action id="org.freedesktop.udisks2.nvme-smart-selftest"&gt;
728 &lt;description&gt;Run device self-test&lt;/description&gt;
729 &lt;message&gt;Authentication is required to run a device self-test&lt;/message&gt;
730 &lt;defaults&gt;
731 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
732 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
733 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
734 &lt;/defaults&gt;
735 &lt;/action&gt;
736
737 &lt;!-- Sanitize operation --&gt;
738 &lt;action id="org.freedesktop.udisks2.nvme-sanitize"&gt;
739 &lt;description&gt;Start the sanitize operation&lt;/description&gt;
740 &lt;message&gt;Authentication is required to perform a sanitize operation&lt;/message&gt;
741 &lt;defaults&gt;
742 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
743 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
744 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
745 &lt;/defaults&gt;
746 &lt;/action&gt;
747
748 &lt;!-- Format namespace --&gt;
749 &lt;action id="org.freedesktop.udisks2.nvme-format-namespace"&gt;
750 &lt;description&gt;Format a namespace&lt;/description&gt;
751 &lt;message&gt;Authentication is required to format a namespace&lt;/message&gt;
752 &lt;defaults&gt;
753 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
754 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
755 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
756 &lt;/defaults&gt;
757 &lt;/action&gt;
758
759 &lt;!-- Fabrics connect --&gt;
760 &lt;action id="org.freedesktop.udisks2.nvme-connect"&gt;
761 &lt;description&gt;NVMeoF connection&lt;/description&gt;
762 &lt;message&gt;Authentication is required to connect to an NVMe over Fabrics controller&lt;/message&gt;
763 &lt;defaults&gt;
764 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
765 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
766 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
767 &lt;/defaults&gt;
768 &lt;/action&gt;
769
770 &lt;action id="org.freedesktop.udisks2.nvme-disconnect"&gt;
771 &lt;description&gt;Disconnect a NVMeoF controller&lt;/description&gt;
772 &lt;message&gt;Authentication is required to disconnect a NVMe over Fabrics controller&lt;/message&gt;
773 &lt;defaults&gt;
774 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
775 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
776 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
777 &lt;/defaults&gt;
778 &lt;/action&gt;
779
780 &lt;!-- Host NQN and Host ID manipulation --&gt;
781 &lt;action id="org.freedesktop.udisks2.nvme-set-hostnqn-id"&gt;
782 &lt;description&gt;Set a NVMe Host NQN/ID&lt;/description&gt;
783 &lt;message&gt;Authentication is required to set NVMe Host NQN or Host ID&lt;/message&gt;
784 &lt;defaults&gt;
785 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
786 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
787 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
788 &lt;/defaults&gt;
789 &lt;/action&gt;
790
791 &lt;!-- ###################################################################### --&gt;
792 &lt;!-- Canceling jobs --&gt;
793
794 &lt;!-- Cancel own job --&gt;
795 &lt;action id="org.freedesktop.udisks2.cancel-job"&gt;
796 &lt;description&gt;Cancel job&lt;/description&gt;
797 &lt;message&gt;Authentication is required to cancel a job&lt;/message&gt;
798 &lt;defaults&gt;
799 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
800 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
801 &lt;allow_active&gt;yes&lt;/allow_active&gt;
802 &lt;/defaults&gt;
803 &lt;/action&gt;
804
805 &lt;!-- Cancel job initiated by other user --&gt;
806 &lt;action id="org.freedesktop.udisks2.cancel-job-other-user"&gt;
807 &lt;description&gt;Cancel job started by another user&lt;/description&gt;
808 &lt;message&gt;Authentication is required to cancel a job started by another user&lt;/message&gt;
809 &lt;defaults&gt;
810 &lt;allow_any&gt;auth_admin&lt;/allow_any&gt;
811 &lt;allow_inactive&gt;auth_admin&lt;/allow_inactive&gt;
812 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
813 &lt;/defaults&gt;
814 &lt;/action&gt;
815
816 &lt;/policyconfig&gt;
817 </pre>
818 </div>
819 <p>
820 </p>
821 </div>
822 <div class="footer">
823 <hr>Generated by GTK-Doc V1.35.1</div>
824 </body>
825 </html>