Debian Codegraph @

src/nsresourced/io.systemd.namespace-resource.policy

raw
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 <!-- Allow allocation of a user namespace with an automatically assigned UID range -->
22 <action id="io.systemd.namespace-resource.allocate-user-namespace">
23 <description gettext-domain="systemd">Allow user namespace allocation</description>
24 <message gettext-domain="systemd">Authentication is required for an application to allocate a user namespace '$(name)' with an automatically assigned transient UID range.</message>
25 <defaults>
26 <allow_any>yes</allow_any>
27 <allow_inactive>yes</allow_inactive>
28 <allow_active>yes</allow_active>
29 </defaults>
30 <annotate key="org.freedesktop.policykit.imply">io.systemd.namespace-resource.register-user-namespace</annotate>
31 </action>
32
33 <!-- Allow registration of a user namespace with a range allocated elsewhere -->
34 <action id="io.systemd.namespace-resource.register-user-namespace">
35 <description gettext-domain="systemd">Allow user namespace registration</description>
36 <message gettext-domain="systemd">Authentication is required for an application to register a user namespace '$(name)'.</message>
37 <defaults>
38 <allow_any>yes</allow_any>
39 <allow_inactive>yes</allow_inactive>
40 <allow_active>yes</allow_active>
41 </defaults>
42 <annotate key="org.freedesktop.policykit.imply">io.systemd.namespace-resource.allocate-user-namespace</annotate>
43 </action>
44
45 <!-- Allow adding a mount to a registered userns -->
46 <action id="io.systemd.namespace-resource.delegate-mount">
47 <description gettext-domain="systemd">Allow adding a mount to a user namespace</description>
48 <message gettext-domain="systemd">Authentication is required for an application to add a mount to a user namespace.</message>
49 <defaults>
50 <allow_any>yes</allow_any>
51 <allow_inactive>yes</allow_inactive>
52 <allow_active>yes</allow_active>
53 </defaults>
54 </action>
55
56 <!-- Allow adding a cgroup to a registered userns -->
57 <action id="io.systemd.namespace-resource.delegate-cgroup">
58 <description gettext-domain="systemd">Allow adding a control group to a user namespace</description>
59 <message gettext-domain="systemd">Authentication is required for an application to add a control group to a user namespace.</message>
60 <defaults>
61 <allow_any>yes</allow_any>
62 <allow_inactive>yes</allow_inactive>
63 <allow_active>yes</allow_active>
64 </defaults>
65 </action>
66
67 <!-- Allow adding a network interface to a registered userns -->
68 <action id="io.systemd.namespace-resource.delegate-network-interface">
69 <description gettext-domain="systemd">Allow adding a network interface to a user namespace</description>
70 <message gettext-domain="systemd">Authentication is required for an application to add a network interface of type $(type) to a user namespace.</message>
71 <defaults>
72 <allow_any>yes</allow_any>
73 <allow_inactive>yes</allow_inactive>
74 <allow_active>yes</allow_active>
75 </defaults>
76 </action>
77
78 </policyconfig>