add polkit XML policies, include them in install target
[systembsd.git] / conf / polkit-policy / org.freedesktop.hostname1.policy
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD polkit Policy Configuration 1.0//EN" "http://www.freedesktop.org/software/polkit/policyconfig-1.dtd">
3
4 <policyconfig>
5 <vendor>OpenBSD</vendor>
6 <vendor_url>https://uglyman.kremlin.cc/gitweb/gitweb.cgi?p=systemd-utl.git</vendor_url> <!-- TODO change or redirect this URL when we rebase -->
7
8 <action id="org.freedesktop.hostname1.SetHostname">
9 <description>Set dynamic (system) hostname.</description>
10 <message>Setting the dynamic (system) hostname requires authentication.</message>
11 <defaults>
12 <allow_any>auth_admin_keep</allow_any>
13 <allow_inactive>auth_admin_keep</allow_inactive>
14 <allow_active>auth_admin_keep</allow_active>
15 </defaults>
16 </action>
17
18 <action id="org.freedesktop.hostname1.SetStaticHostname">
19 <description>Set static hostname.</description>
20 <message>Setting the static hostname requires authentication.</message>
21 <defaults>
22 <allow_any>auth_admin_keep</allow_any>
23 <allow_inactive>auth_admin_keep</allow_inactive>
24 <allow_active>auth_admin_keep</allow_active>
25 </defaults>
26 </action>
27
28 <action id="org.freedesktop.hostname1.SetPrettyHostname">
29 <description>Set pretty (UTF-8) hostname.</description>
30 <message>Setting the pretty (UTF-8) hostname requires authentication.</message>
31 <defaults>
32 <allow_any>auth_admin_keep</allow_any>
33 <allow_inactive>auth_admin_keep</allow_inactive>
34 <allow_active>auth_admin_keep</allow_active>
35 </defaults>
36 </action>
37
38 <action id="org.freedesktop.hostname1.SetIconName">
39 <description>Set system's icon name.</description>
40 <message>Setting the system's icon name requires authentication.</message>
41 <defaults>
42 <allow_any>auth_admin_keep</allow_any>
43 <allow_inactive>auth_admin_keep</allow_inactive>
44 <allow_active>auth_admin_keep</allow_active>
45 </defaults>
46 </action>
47
48 <action id="org.freedesktop.hostname1.SetChassis">
49 <description>Set system's chassis type.</description>
50 <message>Setting the system's chassis type requires authentication.</message>
51 <defaults>
52 <allow_any>auth_admin_keep</allow_any>
53 <allow_inactive>auth_admin_keep</allow_inactive>
54 <allow_active>auth_admin_keep</allow_active>
55 </defaults>
56 </action>
57 </policyconfig>