summaryrefslogtreecommitdiff
path: root/test/data
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2018-02-20 11:45:39 +0000
committerSimon McVittie <smcv@collabora.com>2018-02-20 18:37:30 +0000
commit49ca421997d91d3e01626b2c92a826e6a5db0b2f (patch)
treeeb1d08e1043168669a4f893baec6af48aa63eda2 /test/data
parenta146724f2f7610bc0a968d03a3f20481c03a6a37 (diff)
downloaddbus-49ca421997d91d3e01626b2c92a826e6a5db0b2f.tar.gz
Add a unit test for the dbus-daemon resetting its fd limit
Reviewed-by: David King <dking@redhat.com> [smcv: Fix typo in cmake macro name] Signed-off-by: Simon McVittie <smcv@collabora.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=105165
Diffstat (limited to 'test/data')
-rw-r--r--test/data/valid-config-files/as-another-user.conf.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/data/valid-config-files/as-another-user.conf.in b/test/data/valid-config-files/as-another-user.conf.in
new file mode 100644
index 00000000..89d00c8c
--- /dev/null
+++ b/test/data/valid-config-files/as-another-user.conf.in
@@ -0,0 +1,28 @@
+<!--
+Configuration similar to the system bus, to be used when testing rlimit
+handling.
+-->
+
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+ <type>system</type>
+ <user>@DBUS_USER@</user>
+ <auth>EXTERNAL</auth>
+
+ <!-- This is not the same as the real system bus: we don't want to collide -->
+ <listen>@TEST_LISTEN@</listen>
+
+ <policy context="default">
+ <allow user="*"/>
+ <deny own="*"/>
+ <deny send_type="method_call"/>
+ <allow send_type="signal"/>
+ <allow send_requested_reply="true" send_type="method_return"/>
+ <allow send_requested_reply="true" send_type="error"/>
+ <allow receive_type="method_call"/>
+ <allow receive_type="method_return"/>
+ <allow receive_type="error"/>
+ <allow receive_type="signal"/>
+ </policy>
+</busconfig>