]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/hostname/org.freedesktop.hostname1.policy
Merge pull request #8149 from poettering/fake-root-cgroup
[thirdparty/systemd.git] / src / hostname / org.freedesktop.hostname1.policy
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">
4
5 <!--
6 SPDX-License-Identifier: LGPL-2.1+
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>http://www.freedesktop.org/wiki/Software/systemd</vendor_url>
20
21 <action id="org.freedesktop.hostname1.set-hostname">
22 <description gettext-domain="systemd">Set host name</description>
23 <message gettext-domain="systemd">Authentication is required to set the local host name.</message>
24 <defaults>
25 <allow_any>auth_admin_keep</allow_any>
26 <allow_inactive>auth_admin_keep</allow_inactive>
27 <allow_active>auth_admin_keep</allow_active>
28 </defaults>
29 </action>
30
31 <action id="org.freedesktop.hostname1.set-static-hostname">
32 <description gettext-domain="systemd">Set static host name</description>
33 <message gettext-domain="systemd">Authentication is required to set the statically configured local host name, as well as the pretty host name.</message>
34 <defaults>
35 <allow_any>auth_admin_keep</allow_any>
36 <allow_inactive>auth_admin_keep</allow_inactive>
37 <allow_active>auth_admin_keep</allow_active>
38 </defaults>
39 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.hostname1.set-hostname org.freedesktop.hostname1.set-machine-info</annotate>
40 </action>
41
42 <action id="org.freedesktop.hostname1.set-machine-info">
43 <description gettext-domain="systemd">Set machine information</description>
44 <message gettext-domain="systemd">Authentication is required to set local machine information.</message>
45 <defaults>
46 <allow_any>auth_admin_keep</allow_any>
47 <allow_inactive>auth_admin_keep</allow_inactive>
48 <allow_active>auth_admin_keep</allow_active>
49 </defaults>
50 </action>
51
52 </policyconfig>