1 <?xml version="1.0" encoding="UTF-8"?> <!--*-nxml-*-->
2 <!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
3 "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
6 This file is part of elogind.
7 SPDX-License-Identifier: LGPL-2.1+
9 elogind is free software; you can redistribute it and/or modify it
11 under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation; either version 2.1 of the License, or
13 (at your option) any later version.
18 <vendor>The elogind Project</vendor>
19 <!-- 0 /// Need to set this to the elogind project url
20 <vendor_url>http://www.freedesktop.org/wiki/Software/systemd</vendor_url>
22 <vendor_url>https://github.com/elogind/elogind</vendor_url>
25 <action id="org.freedesktop.login1.inhibit-block-shutdown">
26 <description>Allow applications to inhibit system shutdown</description>
27 <message>Authentication is required for an application to inhibit system shutdown.</message>
29 <allow_any>no</allow_any>
30 <allow_inactive>yes</allow_inactive>
31 <allow_active>yes</allow_active>
33 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.inhibit-delay-shutdown org.freedesktop.login1.inhibit-block-sleep org.freedesktop.login1.inhibit-delay-sleep org.freedesktop.login1.inhibit-block-idle</annotate>
36 <action id="org.freedesktop.login1.inhibit-delay-shutdown">
37 <description>Allow applications to delay system shutdown</description>
38 <message>Authentication is required for an application to delay system shutdown.</message>
40 <allow_any>yes</allow_any>
41 <allow_inactive>yes</allow_inactive>
42 <allow_active>yes</allow_active>
44 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.inhibit-delay-sleep</annotate>
47 <action id="org.freedesktop.login1.inhibit-block-sleep">
48 <description>Allow applications to inhibit system sleep</description>
49 <message>Authentication is required for an application to inhibit system sleep.</message>
51 <allow_any>no</allow_any>
52 <allow_inactive>yes</allow_inactive>
53 <allow_active>yes</allow_active>
55 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.inhibit-delay-sleep org.freedesktop.login1.inhibit-block-idle</annotate>
58 <action id="org.freedesktop.login1.inhibit-delay-sleep">
59 <description>Allow applications to delay system sleep</description>
60 <message>Authentication is required for an application to delay system sleep.</message>
62 <allow_any>yes</allow_any>
63 <allow_inactive>yes</allow_inactive>
64 <allow_active>yes</allow_active>
68 <action id="org.freedesktop.login1.inhibit-block-idle">
69 <description>Allow applications to inhibit automatic system suspend</description>
70 <message>Authentication is required for an application to inhibit automatic system suspend.</message>
72 <allow_any>yes</allow_any>
73 <allow_inactive>yes</allow_inactive>
74 <allow_active>yes</allow_active>
78 <action id="org.freedesktop.login1.inhibit-handle-power-key">
79 <description>Allow applications to inhibit system handling of the power key</description>
80 <message>Authentication is required for an application to inhibit system handling of the power key.</message>
82 <allow_any>no</allow_any>
83 <allow_inactive>yes</allow_inactive>
84 <allow_active>yes</allow_active>
86 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.inhibit-handle-suspend-key org.freedesktop.login1.inhibit-handle-hibernate-key org.freedesktop.login1.inhibit-handle-lid-switch</annotate>
89 <action id="org.freedesktop.login1.inhibit-handle-suspend-key">
90 <description>Allow applications to inhibit system handling of the suspend key</description>
91 <message>Authentication is required for an application to inhibit system handling of the suspend key.</message>
93 <allow_any>no</allow_any>
94 <allow_inactive>yes</allow_inactive>
95 <allow_active>yes</allow_active>
97 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.inhibit-handle-hibernate-key org.freedesktop.login1.inhibit-handle-lid-switch</annotate>
100 <action id="org.freedesktop.login1.inhibit-handle-hibernate-key">
101 <description>Allow applications to inhibit system handling of the hibernate key</description>
102 <message>Authentication is required for an application to inhibit system handling of the hibernate key.</message>
104 <allow_any>no</allow_any>
105 <allow_inactive>yes</allow_inactive>
106 <allow_active>yes</allow_active>
110 <action id="org.freedesktop.login1.inhibit-handle-lid-switch">
111 <description>Allow applications to inhibit system handling of the lid switch</description>
112 <message>Authentication is required for an application to inhibit system handling of the lid switch.</message>
114 <allow_any>no</allow_any>
115 <allow_inactive>yes</allow_inactive>
116 <allow_active>yes</allow_active>
120 <action id="org.freedesktop.login1.set-self-linger">
121 <description>Allow non-logged-in user to run programs</description>
122 <message>Explicit request is required to run programs as a non-logged-in user.</message>
124 <allow_any>yes</allow_any>
125 <allow_inactive>yes</allow_inactive>
126 <allow_active>yes</allow_active>
130 <action id="org.freedesktop.login1.set-user-linger">
131 <description>Allow non-logged-in users to run programs</description>
132 <message>Authentication is required to run programs as a non-logged-in user.</message>
134 <allow_any>auth_admin_keep</allow_any>
135 <allow_inactive>auth_admin_keep</allow_inactive>
136 <allow_active>auth_admin_keep</allow_active>
140 <action id="org.freedesktop.login1.attach-device">
141 <description>Allow attaching devices to seats</description>
142 <message>Authentication is required for attaching a device to a seat.</message>
144 <allow_any>auth_admin_keep</allow_any>
145 <allow_inactive>auth_admin_keep</allow_inactive>
146 <allow_active>auth_admin_keep</allow_active>
148 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.flush-devices</annotate>
151 <action id="org.freedesktop.login1.flush-devices">
152 <description>Flush device to seat attachments</description>
153 <message>Authentication is required for resetting how devices are attached to seats.</message>
155 <allow_any>auth_admin_keep</allow_any>
156 <allow_inactive>auth_admin_keep</allow_inactive>
157 <allow_active>auth_admin_keep</allow_active>
161 <action id="org.freedesktop.login1.power-off">
162 <description>Power off the system</description>
163 <message>Authentication is required for powering off the system.</message>
165 <allow_any>auth_admin_keep</allow_any>
166 <allow_inactive>auth_admin_keep</allow_inactive>
167 <allow_active>yes</allow_active>
169 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.set-wall-message</annotate>
172 <action id="org.freedesktop.login1.power-off-multiple-sessions">
173 <description>Power off the system while other users are logged in</description>
174 <message>Authentication is required for powering off the system while other users are logged in.</message>
176 <allow_any>auth_admin_keep</allow_any>
177 <allow_inactive>auth_admin_keep</allow_inactive>
178 <allow_active>yes</allow_active>
180 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.power-off</annotate>
183 <action id="org.freedesktop.login1.power-off-ignore-inhibit">
184 <description>Power off the system while an application asked to inhibit it</description>
185 <message>Authentication is required for powering off the system while an application asked to inhibit it.</message>
187 <allow_any>auth_admin_keep</allow_any>
188 <allow_inactive>auth_admin_keep</allow_inactive>
189 <allow_active>auth_admin_keep</allow_active>
191 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.power-off</annotate>
194 <action id="org.freedesktop.login1.reboot">
195 <description>Reboot the system</description>
196 <message>Authentication is required for rebooting the system.</message>
198 <allow_any>auth_admin_keep</allow_any>
199 <allow_inactive>auth_admin_keep</allow_inactive>
200 <allow_active>yes</allow_active>
202 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.set-wall-message</annotate>
205 <action id="org.freedesktop.login1.reboot-multiple-sessions">
206 <description>Reboot the system while other users are logged in</description>
207 <message>Authentication is required for rebooting the system while other users are logged in.</message>
209 <allow_any>auth_admin_keep</allow_any>
210 <allow_inactive>auth_admin_keep</allow_inactive>
211 <allow_active>yes</allow_active>
213 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.reboot</annotate>
216 <action id="org.freedesktop.login1.reboot-ignore-inhibit">
217 <description>Reboot the system while an application asked to inhibit it</description>
218 <message>Authentication is required for rebooting the system while an application asked to inhibit it.</message>
220 <allow_any>auth_admin_keep</allow_any>
221 <allow_inactive>auth_admin_keep</allow_inactive>
222 <allow_active>auth_admin_keep</allow_active>
224 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.reboot</annotate>
227 <action id="org.freedesktop.login1.halt">
228 <description>Halt the system</description>
229 <message>Authentication is required for halting the system.</message>
231 <allow_any>auth_admin_keep</allow_any>
232 <allow_inactive>auth_admin_keep</allow_inactive>
233 <allow_active>auth_admin_keep</allow_active>
235 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.set-wall-message</annotate>
238 <action id="org.freedesktop.login1.halt-multiple-sessions">
239 <description>Halt the system while other users are logged in</description>
240 <message>Authentication is required for halting the system while other users are logged in.</message>
242 <allow_any>auth_admin_keep</allow_any>
243 <allow_inactive>auth_admin_keep</allow_inactive>
244 <allow_active>auth_admin_keep</allow_active>
246 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.halt</annotate>
249 <action id="org.freedesktop.login1.halt-ignore-inhibit">
250 <description>Halt the system while an application asked to inhibit it</description>
251 <message>Authentication is required for halting the system while an application asked to inhibit it.</message>
253 <allow_any>auth_admin_keep</allow_any>
254 <allow_inactive>auth_admin_keep</allow_inactive>
255 <allow_active>auth_admin_keep</allow_active>
257 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.halt</annotate>
260 <action id="org.freedesktop.login1.suspend">
261 <description>Suspend the system</description>
262 <message>Authentication is required for suspending the system.</message>
264 <allow_any>auth_admin_keep</allow_any>
265 <allow_inactive>auth_admin_keep</allow_inactive>
266 <allow_active>yes</allow_active>
270 <action id="org.freedesktop.login1.suspend-multiple-sessions">
271 <description>Suspend the system while other users are logged in</description>
272 <message>Authentication is required for suspending the system while other users are logged in.</message>
274 <allow_any>auth_admin_keep</allow_any>
275 <allow_inactive>auth_admin_keep</allow_inactive>
276 <allow_active>yes</allow_active>
278 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.suspend</annotate>
281 <action id="org.freedesktop.login1.suspend-ignore-inhibit">
282 <description>Suspend the system while an application asked to inhibit it</description>
283 <message>Authentication is required for suspending the system while an application asked to inhibit it.</message>
285 <allow_any>auth_admin_keep</allow_any>
286 <allow_inactive>auth_admin_keep</allow_inactive>
287 <allow_active>auth_admin_keep</allow_active>
289 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.suspend</annotate>
292 <action id="org.freedesktop.login1.hibernate">
293 <description>Hibernate the system</description>
294 <message>Authentication is required for hibernating the system.</message>
296 <allow_any>auth_admin_keep</allow_any>
297 <allow_inactive>auth_admin_keep</allow_inactive>
298 <allow_active>yes</allow_active>
302 <action id="org.freedesktop.login1.hibernate-multiple-sessions">
303 <description>Hibernate the system while other users are logged in</description>
304 <message>Authentication is required for hibernating the system while other users are logged in.</message>
306 <allow_any>auth_admin_keep</allow_any>
307 <allow_inactive>auth_admin_keep</allow_inactive>
308 <allow_active>yes</allow_active>
310 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.hibernate</annotate>
313 <action id="org.freedesktop.login1.hibernate-ignore-inhibit">
314 <description>Hibernate the system while an application asked to inhibit it</description>
315 <message>Authentication is required for hibernating the system while an application asked to inhibit it.</message>
317 <allow_any>auth_admin_keep</allow_any>
318 <allow_inactive>auth_admin_keep</allow_inactive>
319 <allow_active>auth_admin_keep</allow_active>
321 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.hibernate</annotate>
324 <action id="org.freedesktop.login1.manage">
325 <description>Manage active sessions, users and seats</description>
326 <message>Authentication is required for managing active sessions, users and seats.</message>
328 <allow_any>auth_admin_keep</allow_any>
329 <allow_inactive>auth_admin_keep</allow_inactive>
330 <allow_active>auth_admin_keep</allow_active>
334 <action id="org.freedesktop.login1.lock-sessions">
335 <description>Lock or unlock active sessions</description>
336 <message>Authentication is required to lock or unlock active sessions.</message>
338 <allow_any>auth_admin_keep</allow_any>
339 <allow_inactive>auth_admin_keep</allow_inactive>
340 <allow_active>auth_admin_keep</allow_active>
344 <action id="org.freedesktop.login1.set-reboot-to-firmware-setup">
345 <description>Allow indication to the firmware to boot to setup interface</description>
346 <message>Authentication is required to indicate to the firmware to boot to setup interface.</message>
348 <allow_any>auth_admin_keep</allow_any>
349 <allow_inactive>auth_admin_keep</allow_inactive>
350 <allow_active>auth_admin_keep</allow_active>
354 <action id="org.freedesktop.login1.set-wall-message">
355 <description>Set a wall message</description>
356 <message>Authentication is required to set a wall message</message>
358 <allow_any>auth_admin_keep</allow_any>
359 <allow_inactive>auth_admin_keep</allow_inactive>
360 <allow_active>auth_admin_keep</allow_active>