summaryrefslogtreecommitdiff
path: root/test/data
diff options
context:
space:
mode:
authorAdrian Szyndela <adrian.s@samsung.com>2019-04-25 15:04:53 +0200
committerAdrian Szyndela <adrian.s@samsung.com>2019-05-14 10:31:13 +0200
commit8fcc1f9a8ae1a0160340a55cd4b6a34e329bdb30 (patch)
treeeebbcf0570640a69435de8c6476ef393445d15a5 /test/data
parent7b7c57243482af1a4ace21351b2cdf988676575d (diff)
downloaddbus-8fcc1f9a8ae1a0160340a55cd4b6a34e329bdb30.tar.gz
test: activation tests for send_destination_prefix
This adds a few tests for checking if activation is allowed for names specified within send_destination_prefix namespaces. Signed-off-by: Adrian Szyndela <adrian.s@samsung.com> Change-Id: I7a5a66f82fc08ce6cb46e37de2c3dfae24d9ea67
Diffstat (limited to 'test/data')
-rw-r--r--test/data/systemd-activation/com.example.SendPrefixDenied.SendPrefixAllowed.internal.service4
-rw-r--r--test/data/systemd-activation/com.example.SendPrefixDenied.internal.service4
-rw-r--r--test/data/systemd-activation/com.example.SendPrefixDenied.service4
-rw-r--r--test/data/valid-config-files/systemd-activation.conf.in2
4 files changed, 14 insertions, 0 deletions
diff --git a/test/data/systemd-activation/com.example.SendPrefixDenied.SendPrefixAllowed.internal.service b/test/data/systemd-activation/com.example.SendPrefixDenied.SendPrefixAllowed.internal.service
new file mode 100644
index 00000000..5aab8bf2
--- /dev/null
+++ b/test/data/systemd-activation/com.example.SendPrefixDenied.SendPrefixAllowed.internal.service
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=com.example.SendPrefixDenied.SendPrefixAllowed.internal
+Exec=/bin/false SendPrefixDenied.SendPrefixAllowed.internal
+SystemdService=dbus-com.example.SendPrefixDenied.SendPrefixAllowed.internal.service
diff --git a/test/data/systemd-activation/com.example.SendPrefixDenied.internal.service b/test/data/systemd-activation/com.example.SendPrefixDenied.internal.service
new file mode 100644
index 00000000..f9d63356
--- /dev/null
+++ b/test/data/systemd-activation/com.example.SendPrefixDenied.internal.service
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=com.example.SendPrefixDenied.internal
+Exec=/bin/false SendPrefixDenied.internal
+SystemdService=dbus-com.example.SendPrefixDenied.internal.service
diff --git a/test/data/systemd-activation/com.example.SendPrefixDenied.service b/test/data/systemd-activation/com.example.SendPrefixDenied.service
new file mode 100644
index 00000000..3595ce19
--- /dev/null
+++ b/test/data/systemd-activation/com.example.SendPrefixDenied.service
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=com.example.SendPrefixDenied
+Exec=/bin/false SendPrefixDenied
+SystemdService=dbus-com.example.SendPrefixDenied.service
diff --git a/test/data/valid-config-files/systemd-activation.conf.in b/test/data/valid-config-files/systemd-activation.conf.in
index 2c3d2c21..499aaa59 100644
--- a/test/data/valid-config-files/systemd-activation.conf.in
+++ b/test/data/valid-config-files/systemd-activation.conf.in
@@ -14,6 +14,8 @@
<policy context="mandatory">
<deny send_destination="com.example.SendDenied"/>
+ <deny send_destination_prefix="com.example.SendPrefixDenied"/>
<deny receive_interface="com.example.ReceiveDenied" receive_member="Call"/>
+ <allow send_destination_prefix="com.example.SendPrefixDenied.SendPrefixAllowed"/>
</policy>
</busconfig>