]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/test-execute/exec-bindpaths.service
Merge pull request #14194 from yuwata/network-multipath-routing-12541
[thirdparty/systemd.git] / test / test-execute / exec-bindpaths.service
1 [Unit]
2 Description=Test for BindPaths= and BindReadOnlyPaths=
3
4 [Service]
5 Type=oneshot
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'
14 # Cleanup
15 ExecStart=rm /tmp/thisisasimpletest
16 BindPaths=/tmp:/tmp/test-exec-bindpaths
17 BindReadOnlyPaths=/tmp:/tmp/test-exec-bindreadonlypaths