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

[Service]
ReadOnlyPaths=/usr /etc /sys /dev -/i-dont-exist
PrivateDevices=yes
ExecStart=/bin/sh -x -c 'test ! -w /usr && test ! -w /etc && test ! -w /sys && test ! -w /sys/fs/cgroup'
ExecStart=/bin/sh -x -c 'test ! -w /dev && test ! -w /dev/shm && test ! -e /i-dont-exist && test -w /var'
Type=oneshot