| 1 |
# SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 |
[Unit] |
| 3 |
Description=Test for ReadOnlyPaths= |
| 4 |
|
| 5 |
[Service] |
| 6 |
ReadOnlyPaths=/etc -/i-dont-exist /usr |
| 7 |
BindPaths=/etc:/tmp/etc2 |
| 8 |
ExecStart=bash -x -c 'test ! -w /etc && test ! -w /usr && test ! -e /i-dont-exist && test -w /var' |
| 9 |
Type=oneshot |