diff options
author | Alban Crequy <alban.crequy@collabora.co.uk> | 2012-03-21 19:05:42 +0000 |
---|---|---|
committer | Alban Crequy <alban.crequy@collabora.co.uk> | 2012-03-22 11:51:23 +0000 |
commit | f1cfc138efc2af0763a51ae665ea50096f613512 (patch) | |
tree | 770c074ab61b7fa8dd9dafcf14e1dd9747bd69f0 /test/data | |
parent | d0591d318f8c93f159ea4b193b79888567a6439c (diff) |
test: enforce own_prefix policy rules
After parsing [allow|deny] rules with own_prefix, check they are enforced
correctly.
https://bugs.freedesktop.org/show_bug.cgi?id=46886
Diffstat (limited to 'test/data')
-rw-r--r-- | test/data/valid-config-files/check-own-rules.conf | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/data/valid-config-files/check-own-rules.conf b/test/data/valid-config-files/check-own-rules.conf new file mode 100644 index 00000000..bc2f415f --- /dev/null +++ b/test/data/valid-config-files/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> |