summaryrefslogtreecommitdiff
path: root/bus/example-system-enable-stats.conf.in
diff options
context:
space:
mode:
authorAlban Crequy <alban.crequy@collabora.co.uk>2014-09-26 11:26:32 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-10-01 16:38:40 +0100
commitf11f6f30d663dc9837ce7378f7d1219028d38795 (patch)
tree4053928d62356a092392489683062bf7fbf30758 /bus/example-system-enable-stats.conf.in
parent4695aacd0d19b9693b058ca24a7ba2387399b0d9 (diff)
downloaddbus-f11f6f30d663dc9837ce7378f7d1219028d38795.tar.gz
config: add examples to show how to enable/disable the Stats interface
[install examples to ${docdir}/examples -smcv] Bug: https://bugs.freedesktop.org/show_bug.cgi?id=80759 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'bus/example-system-enable-stats.conf.in')
-rw-r--r--bus/example-system-enable-stats.conf.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/bus/example-system-enable-stats.conf.in b/bus/example-system-enable-stats.conf.in
new file mode 100644
index 00000000..a85aa835
--- /dev/null
+++ b/bus/example-system-enable-stats.conf.in
@@ -0,0 +1,15 @@
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+
+ <!-- If the Stats interface was enabled at compile-time, only root may use it.
+ Replace USERNAME and copy this file in @EXPANDED_SYSCONFDIR@/dbus-1/system.d/
+ if you want to enable other privileged users to view statistics and
+ debug info -->
+
+ <policy user="USERNAME">
+ <allow send_destination="org.freedesktop.DBus"
+ send_interface="org.freedesktop.DBus.Debug.Stats"/>
+ </policy>
+
+</busconfig>