diff options
-rw-r--r-- | Makefile.am | 5 | ||||
-rw-r--r-- | data/openrc-settingsd.conf | 25 |
2 files changed, 30 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 5b7b0c2..5902180 100644 --- a/Makefile.am +++ b/Makefile.am @@ -31,6 +31,11 @@ dbusservices_DATA = \ data/org.freedesktop.timedate1.service \ $(NULL) +dbusbusconfigdir = $(sysconfdir)/dbus-1/system.d +dist_dbusbusconfig_DATA = \ + data/openrc-settingsd.conf \ + $(NULL) + polkitactiondir = @polkitactiondir@ dist_polkitaction_DATA = \ data/org.freedesktop.hostname1.policy \ diff --git a/data/openrc-settingsd.conf b/data/openrc-settingsd.conf new file mode 100644 index 0000000..89f3a90 --- /dev/null +++ b/data/openrc-settingsd.conf @@ -0,0 +1,25 @@ +<?xml version="1.0"?> +<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> + +<busconfig> + <policy user="root"> + <allow own="org.freedesktop.hostname1"/> + <allow own="org.freedesktop.locale1"/> + <allow own="org.freedesktop.timedate1"/> + <allow send_destination="org.freedesktop.hostname1"/> + <allow send_destination="org.freedesktop.locale1"/> + <allow send_destination="org.freedesktop.timedate1"/> + <allow receive_sender="org.freedesktop.hostname1"/> + <allow receive_sender="org.freedesktop.locale1"/> + <allow receive_sender="org.freedesktop.timedate1"/> + </policy> + + <policy context="default"> + <allow send_destination="org.freedesktop.hostname1"/> + <allow send_destination="org.freedesktop.locale1"/> + <allow send_destination="org.freedesktop.timedate1"/> + <allow receive_sender="org.freedesktop.hostname1"/> + <allow receive_sender="org.freedesktop.locale1"/> + <allow receive_sender="org.freedesktop.timedate1"/> + </policy> +</busconfig> |