diff options
author | kremlin <ian@kremlin.cc> | 2016-07-15 06:22:08 +0800 |
---|---|---|
committer | kremlin <ian@kremlin.cc> | 2016-07-15 06:22:08 +0800 |
commit | 9d3b5b6886d6d3f3932088097724087def9b6ea2 (patch) | |
tree | a36dad203ab9679864981c9c8cae30aef85aa849 /conf | |
parent | 7a7c9176a59e4286f0c4dc6ead65f1ff9b0b131f (diff) | |
download | systembsd-9d3b5b6886d6d3f3932088097724087def9b6ea2.tar systembsd-9d3b5b6886d6d3f3932088097724087def9b6ea2.tar.gz systembsd-9d3b5b6886d6d3f3932088097724087def9b6ea2.tar.bz2 systembsd-9d3b5b6886d6d3f3932088097724087def9b6ea2.tar.lz systembsd-9d3b5b6886d6d3f3932088097724087def9b6ea2.tar.xz systembsd-9d3b5b6886d6d3f3932088097724087def9b6ea2.tar.zst systembsd-9d3b5b6886d6d3f3932088097724087def9b6ea2.zip |
Diffstat (limited to 'conf')
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 |