summaryrefslogtreecommitdiffstats
path: root/test/test-execute/exec-readonlypaths-with-bindpaths.service
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2017-10-28 08:35:19 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2017-11-08 07:48:32 +0100
commit23fd04e92d8b260e8ba326f6e62ccf7a4076ff44 (patch)
tree543ee006a549384f2b4870e152565552f8d4e15f /test/test-execute/exec-readonlypaths-with-bindpaths.service
parentcore: ReadWritePaths= and friends assume '+' prefix when BindPaths= or freind... (diff)
downloadsystemd-23fd04e92d8b260e8ba326f6e62ccf7a4076ff44.tar.xz
systemd-23fd04e92d8b260e8ba326f6e62ccf7a4076ff44.zip
test: add test for ReadOnlyPaths= with RuntimeDirectory=
Diffstat (limited to 'test/test-execute/exec-readonlypaths-with-bindpaths.service')
-rw-r--r--test/test-execute/exec-readonlypaths-with-bindpaths.service9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test-execute/exec-readonlypaths-with-bindpaths.service b/test/test-execute/exec-readonlypaths-with-bindpaths.service
new file mode 100644
index 0000000000..ea9211395d
--- /dev/null
+++ b/test/test-execute/exec-readonlypaths-with-bindpaths.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Test for ReadOnlyPaths=
+
+[Service]
+ReadOnlyPaths=/etc -/i-dont-exist /usr
+# From 6c47cd7d3bf35c8158a0737f34fe2c5dc95e72d6, RuntimeDirectory= implies BindPaths=.
+RuntimeDirectory=foo
+ExecStart=/bin/sh -x -c 'test ! -w /etc && test ! -w /usr && test ! -e /i-dont-exist && test -w /var'
+Type=oneshot