2 Description=Test for BindPaths= and BindReadOnlyPaths=
6 # Create a file in /tmp/test-exec-bindpaths
7 ExecStart=touch /tmp/test-exec-bindpaths/thisisasimpletest
8 # Then, the file can be access through /tmp
9 ExecStart=test -f /tmp/thisisasimpletest
10 # Also, through /tmp/test-exec-bindreadonlypaths
11 ExecStart=test -f /tmp/test-exec-bindreadonlypaths/thisisasimpletest
12 # The file cannot modify through /tmp/test-exec-bindreadonlypaths
13 ExecStart=/bin/sh -x -c '! touch /tmp/test-exec-bindreadonlypaths/thisisasimpletest'
15 ExecStart=rm /tmp/thisisasimpletest
16 BindPaths=/tmp:/tmp/test-exec-bindpaths
17 BindReadOnlyPaths=/tmp:/tmp/test-exec-bindreadonlypaths