test/testdata/test-execute/exec-readonlypaths.service
raw| 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 | [Unit] |
| 3 | Description=Test for ReadOnlyPaths= |
| 4 | |
| 5 | [Service] |
| 6 | ReadOnlyPaths=/usr /etc /sys /dev -/i-dont-exist |
| 7 | PrivateDevices=yes |
| 8 | ExecStart=bash -x -c 'test ! -w /usr && test ! -w /etc && test ! -w /sys && test ! -w /sys/fs/cgroup' |
| 9 | ExecStart=bash -x -c 'test ! -w /dev && test ! -w /dev/shm && test ! -e /i-dont-exist && test -w /var' |
| 10 | Type=oneshot |