diff options
author | 2012-09-07 06:34:06 -0400 | |
---|---|---|
committer | 2012-09-07 06:34:06 -0400 | |
commit | 8370c685c9fdc7fad632383014898797ba94aea2 (patch) | |
tree | b39ac38f407439de408f26c7732b84bbb23328ec | |
parent | Add daemonized mode with syslog logging, pid file, and ability to set rc status (diff) | |
download | openrc-settingsd-8370c685c9fdc7fad632383014898797ba94aea2.tar.gz openrc-settingsd-8370c685c9fdc7fad632383014898797ba94aea2.tar.bz2 openrc-settingsd-8370c685c9fdc7fad632383014898797ba94aea2.zip |
Add a dbus busconfig file
-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> |