| 1 |
<?xml version="1.0" encoding="UTF-8"?> <!--*-nxml-*--> |
| 2 |
<!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" |
| 3 |
"https://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd"> |
| 4 |
|
| 5 |
<!-- |
| 6 |
SPDX-License-Identifier: LGPL-2.1-or-later |
| 7 |
|
| 8 |
This file is part of systemd. |
| 9 |
|
| 10 |
systemd 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. |
| 14 |
--> |
| 15 |
|
| 16 |
<policyconfig> |
| 17 |
|
| 18 |
<vendor>The systemd Project</vendor> |
| 19 |
<vendor_url>https://systemd.io</vendor_url> |
| 20 |
|
| 21 |
<action id="org.freedesktop.machine1.login"> |
| 22 |
<description gettext-domain="systemd">Log into a local container</description> |
| 23 |
<message gettext-domain="systemd">Authentication is required to log into a local container.</message> |
| 24 |
<defaults> |
| 25 |
<allow_any>auth_admin</allow_any> |
| 26 |
<allow_inactive>auth_admin</allow_inactive> |
| 27 |
<allow_active>auth_admin_keep</allow_active> |
| 28 |
</defaults> |
| 29 |
</action> |
| 30 |
|
| 31 |
<action id="org.freedesktop.machine1.host-login"> |
| 32 |
<description gettext-domain="systemd">Log into the local host</description> |
| 33 |
<message gettext-domain="systemd">Authentication is required to log into the local host.</message> |
| 34 |
<defaults> |
| 35 |
<allow_any>auth_admin</allow_any> |
| 36 |
<allow_inactive>auth_admin</allow_inactive> |
| 37 |
<allow_active>yes</allow_active> |
| 38 |
</defaults> |
| 39 |
</action> |
| 40 |
|
| 41 |
<action id="org.freedesktop.machine1.shell"> |
| 42 |
<description gettext-domain="systemd">Acquire a shell in a local container</description> |
| 43 |
<message gettext-domain="systemd">Authentication is required to acquire a shell in a local container.</message> |
| 44 |
<defaults> |
| 45 |
<allow_any>auth_admin</allow_any> |
| 46 |
<allow_inactive>auth_admin</allow_inactive> |
| 47 |
<allow_active>auth_admin_keep</allow_active> |
| 48 |
</defaults> |
| 49 |
<annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.login</annotate> |
| 50 |
</action> |
| 51 |
|
| 52 |
<action id="org.freedesktop.machine1.host-shell"> |
| 53 |
<description gettext-domain="systemd">Acquire a shell on the local host</description> |
| 54 |
<message gettext-domain="systemd">Authentication is required to acquire a shell on the local host.</message> |
| 55 |
<defaults> |
| 56 |
<allow_any>auth_admin</allow_any> |
| 57 |
<allow_inactive>auth_admin</allow_inactive> |
| 58 |
<allow_active>auth_admin_keep</allow_active> |
| 59 |
</defaults> |
| 60 |
<annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.host-login</annotate> |
| 61 |
</action> |
| 62 |
|
| 63 |
<action id="org.freedesktop.machine1.open-pty"> |
| 64 |
<description gettext-domain="systemd">Acquire a pseudo TTY in a local container</description> |
| 65 |
<message gettext-domain="systemd">Authentication is required to acquire a pseudo TTY in a local container.</message> |
| 66 |
<defaults> |
| 67 |
<allow_any>auth_admin</allow_any> |
| 68 |
<allow_inactive>auth_admin</allow_inactive> |
| 69 |
<allow_active>auth_admin_keep</allow_active> |
| 70 |
</defaults> |
| 71 |
</action> |
| 72 |
|
| 73 |
<action id="org.freedesktop.machine1.host-open-pty"> |
| 74 |
<description gettext-domain="systemd">Acquire a pseudo TTY on the local host</description> |
| 75 |
<message gettext-domain="systemd">Authentication is required to acquire a pseudo TTY on the local host.</message> |
| 76 |
<defaults> |
| 77 |
<allow_any>auth_admin</allow_any> |
| 78 |
<allow_inactive>auth_admin</allow_inactive> |
| 79 |
<allow_active>auth_admin_keep</allow_active> |
| 80 |
</defaults> |
| 81 |
</action> |
| 82 |
|
| 83 |
<action id="org.freedesktop.machine1.manage-machines"> |
| 84 |
<description gettext-domain="systemd">Manage local virtual machines and containers</description> |
| 85 |
<message gettext-domain="systemd">Authentication is required to manage local virtual machines and containers.</message> |
| 86 |
<defaults> |
| 87 |
<allow_any>auth_admin</allow_any> |
| 88 |
<allow_inactive>auth_admin</allow_inactive> |
| 89 |
<allow_active>auth_admin_keep</allow_active> |
| 90 |
</defaults> |
| 91 |
<annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.shell org.freedesktop.login1.login org.freedesktop.machine1.inspect-machines</annotate> |
| 92 |
</action> |
| 93 |
|
| 94 |
<action id="org.freedesktop.machine1.inspect-machines"> |
| 95 |
<description gettext-domain="systemd">Inspect local virtual machines and containers</description> |
| 96 |
<message gettext-domain="systemd">Authentication is required to inspect local virtual machines and containers.</message> |
| 97 |
<defaults> |
| 98 |
<allow_any>auth_admin</allow_any> |
| 99 |
<allow_inactive>auth_admin</allow_inactive> |
| 100 |
<allow_active>auth_admin_keep</allow_active> |
| 101 |
</defaults> |
| 102 |
</action> |
| 103 |
|
| 104 |
<action id="org.freedesktop.machine1.create-machine"> |
| 105 |
<description gettext-domain="systemd">Create a local virtual machine or container</description> |
| 106 |
<message gettext-domain="systemd">Authentication is required to create a local virtual machine or container.</message> |
| 107 |
<defaults> |
| 108 |
<allow_any>auth_admin</allow_any> |
| 109 |
<allow_inactive>auth_admin</allow_inactive> |
| 110 |
<allow_active>auth_admin_keep</allow_active> |
| 111 |
</defaults> |
| 112 |
<annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.shell org.freedesktop.login1.login org.freedesktop.machine1.register-machine</annotate> |
| 113 |
</action> |
| 114 |
|
| 115 |
<action id="org.freedesktop.machine1.register-machine"> |
| 116 |
<description gettext-domain="systemd">Register a local virtual machine or container</description> |
| 117 |
<message gettext-domain="systemd">Authentication is required to register a local virtual machine or container.</message> |
| 118 |
<defaults> |
| 119 |
<allow_any>auth_admin</allow_any> |
| 120 |
<allow_inactive>auth_admin</allow_inactive> |
| 121 |
<allow_active>yes</allow_active> |
| 122 |
</defaults> |
| 123 |
</action> |
| 124 |
|
| 125 |
<action id="org.freedesktop.machine1.manage-images"> |
| 126 |
<description gettext-domain="systemd">Manage local virtual machine and container images</description> |
| 127 |
<message gettext-domain="systemd">Authentication is required to manage local virtual machine and container images.</message> |
| 128 |
<defaults> |
| 129 |
<allow_any>auth_admin</allow_any> |
| 130 |
<allow_inactive>auth_admin</allow_inactive> |
| 131 |
<allow_active>auth_admin_keep</allow_active> |
| 132 |
</defaults> |
| 133 |
<annotate key="org.freedesktop.policykit.imply">org.freedesktop.machine1.inspect-images</annotate> |
| 134 |
</action> |
| 135 |
|
| 136 |
<action id="org.freedesktop.machine1.inspect-images"> |
| 137 |
<description gettext-domain="systemd">Inspect local virtual machine and container images</description> |
| 138 |
<message gettext-domain="systemd">Authentication is required to inspect local virtual machine and container images.</message> |
| 139 |
<defaults> |
| 140 |
<allow_any>auth_admin</allow_any> |
| 141 |
<allow_inactive>auth_admin</allow_inactive> |
| 142 |
<allow_active>auth_admin_keep</allow_active> |
| 143 |
</defaults> |
| 144 |
</action> |
| 145 |
|
| 146 |
</policyconfig> |