mirror of
https://github.com/systemd/systemd.git
synced 2025-10-25 03:33:38 +03:00
test: add tests for simple ReadOnlyPaths= case
This commit is contained in:
7
test/test-execute/exec-readonlypaths.service
Normal file
7
test/test-execute/exec-readonlypaths.service
Normal file
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Test for ReadOnlyPaths=
|
||||
|
||||
[Service]
|
||||
ReadOnlyPaths=/etc -/i-dont-exist /usr
|
||||
ExecStart=/bin/sh -x -c 'test ! -w /etc && test ! -w /usr && test ! -e /i-dont-exist && test -w /var'
|
||||
Type=oneshot
|
||||
Reference in New Issue
Block a user