summaryrefslogtreecommitdiff
path: root/test/test-execute
diff options
context:
space:
mode:
authorDjalal Harouni <tixxdz@opendz.org>2016-09-25 19:24:25 +0200
committerDjalal Harouni <tixxdz@opendz.org>2016-09-27 09:24:43 +0200
commitf78b36f016b5f3e6ce1dfbdfcb78ba227ff8ccac (patch)
treeba19af3ec0c022dcef0a34b914ffa8839a9cade6 /test/test-execute
parent615a1f4b26f3c7d10ad9ea638341a6920a6bc435 (diff)
test: add tests for simple ReadOnlyPaths= case
Diffstat (limited to 'test/test-execute')
-rw-r--r--test/test-execute/exec-readonlypaths.service7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test-execute/exec-readonlypaths.service b/test/test-execute/exec-readonlypaths.service
new file mode 100644
index 0000000000..6866fdc700
--- /dev/null
+++ b/test/test-execute/exec-readonlypaths.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=Test for ReadOnlyPaths=
+
+[Service]
+ReadOnlyPaths=/etc -/i-dont-exist /usr
+ExecStart=/bin/sh -x -c 'test ! -w /etc && test ! -w /usr && test ! -e /i-dont-exist && test -w /var'
+Type=oneshot