summaryrefslogtreecommitdiffstats
path: root/test/test-execute/exec-readonlypaths-with-bindpaths.service
blob: 438c7de70471fc8fef487176f694fe5fe8b62998 (plain)
1
2
3
4
5
6
7
8
[Unit]
Description=Test for ReadOnlyPaths=

[Service]
ReadOnlyPaths=/etc -/i-dont-exist /usr
BindPaths=/etc:/tmp/etc2
ExecStart=/bin/sh -x -c 'test ! -w /etc && test ! -w /usr && test ! -e /i-dont-exist && test -w /var'
Type=oneshot