summaryrefslogtreecommitdiff
path: root/test/bus-policy/check-own-rules.conf
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-11-26 20:22:22 +0100
committerLennart Poettering <lennart@poettering.net>2014-11-26 20:22:22 +0100
commit3a9cca11042331fc053ac1aa6363603622f1188c (patch)
treed63d2139f8d0d707511f1a4387fff95bbc9b3983 /test/bus-policy/check-own-rules.conf
parentcf226cfc24fec9d47a0c822188737656150356bb (diff)
bus-policy: steal a test case for prefix ownership from dbus1, and make sure it passes with the bus proxy enforcement
Diffstat (limited to 'test/bus-policy/check-own-rules.conf')
-rw-r--r--test/bus-policy/check-own-rules.conf14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/bus-policy/check-own-rules.conf b/test/bus-policy/check-own-rules.conf
new file mode 100644
index 0000000000..bc2f415fcb
--- /dev/null
+++ b/test/bus-policy/check-own-rules.conf
@@ -0,0 +1,14 @@
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+ <user>mybususer</user>
+ <listen>unix:path=/foo/bar</listen>
+ <listen>tcp:port=1234</listen>
+ <servicedir>/usr/share/foo</servicedir>
+ <policy context="default">
+ <allow user="*"/>
+ <deny own="*"/>
+ <allow own_prefix="org.freedesktop.ManySystems"/>
+ </policy>
+
+</busconfig>