aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf')
-rw-r--r--conf/introspect-xml/hostnamed-ispect.xml10
-rw-r--r--conf/polkit-policy/org.freedesktop.hostname1.policy18
-rw-r--r--conf/service-files/org.freedesktop.hostname1.service4
-rw-r--r--conf/service-files/org.freedesktop.locale1.service4
-rw-r--r--conf/service-files/org.freedesktop.timedate1.service4
5 files changed, 40 insertions, 0 deletions
diff --git a/conf/introspect-xml/hostnamed-ispect.xml b/conf/introspect-xml/hostnamed-ispect.xml
index bca38cf..a67c306 100644
--- a/conf/introspect-xml/hostnamed-ispect.xml
+++ b/conf/introspect-xml/hostnamed-ispect.xml
@@ -9,6 +9,8 @@
<property name="PrettyHostname" type="s" access="read" />
<property name="IconName" type="s" access="read" />
<property name="Chassis" type="s" access="read" />
+ <property name="Location" type="s" access="read" />
+ <property name="Deployment" type="s" access="read" />
<property name="KernelName" type="s" access="read">
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="const" />
</property>
@@ -44,5 +46,13 @@
<arg type="s" direction="in" />
<arg type="b" direction="in" />
</method>
+ <method name="SetDeployment">
+ <arg type="s" direction="in" />
+ <arg type="b" direction="in" />
+ </method>
+ <method name="SetLocation">
+ <arg type="s" direction="in" />
+ <arg type="b" direction="in" />
+ </method>
</interface>
</node>
diff --git a/conf/polkit-policy/org.freedesktop.hostname1.policy b/conf/polkit-policy/org.freedesktop.hostname1.policy
index f80d57d..cc9fa99 100644
--- a/conf/polkit-policy/org.freedesktop.hostname1.policy
+++ b/conf/polkit-policy/org.freedesktop.hostname1.policy
@@ -54,4 +54,22 @@
<allow_active>auth_admin_keep</allow_active>
</defaults>
</action>
+ <action id="org.freedesktop.hostname1.set-deployment">
+ <description>Set system's deployment.</description>
+ <message>Setting the system's deployment requires authentication.</message>
+ <defaults>
+ <allow_any>auth_admin_keep</allow_any>
+ <allow_inactive>auth_admin_keep</allow_inactive>
+ <allow_active>auth_admin_keep</allow_active>
+ </defaults>
+ </action>
+ <action id="org.freedesktop.hostname1.set-location">
+ <description>Set system's location.</description>
+ <message>Setting the system's location requires authentication.</message>
+ <defaults>
+ <allow_any>auth_admin_keep</allow_any>
+ <allow_inactive>auth_admin_keep</allow_inactive>
+ <allow_active>auth_admin_keep</allow_active>
+ </defaults>
+ </action>
</policyconfig>
diff --git a/conf/service-files/org.freedesktop.hostname1.service b/conf/service-files/org.freedesktop.hostname1.service
new file mode 100644
index 0000000..9f8e2e0
--- /dev/null
+++ b/conf/service-files/org.freedesktop.hostname1.service
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=org.freedesktop.hostname1
+Exec=/usr/local/libexec/systemd/systemd-hostnamed
+User=root
diff --git a/conf/service-files/org.freedesktop.locale1.service b/conf/service-files/org.freedesktop.locale1.service
new file mode 100644
index 0000000..9638a6f
--- /dev/null
+++ b/conf/service-files/org.freedesktop.locale1.service
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=org.freedesktop.locale1
+Exec=/usr/local/libexec/systemd/systemd-localed
+User=root
diff --git a/conf/service-files/org.freedesktop.timedate1.service b/conf/service-files/org.freedesktop.timedate1.service
new file mode 100644
index 0000000..8477b5f
--- /dev/null
+++ b/conf/service-files/org.freedesktop.timedate1.service
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=org.freedesktop.timedate1
+Exec=/usr/local/libexec/systemd/systemd-timedated
+User=root