diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-02-20 08:50:12 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-02-21 01:18:14 +0100 |
commit | 4cac89bd7c449dad262e4b306b76611b80fb51cc (patch) | |
tree | 2257966af61f3961cc2d5bdd677aead02fa2da30 /test/test-execute/exec-temporaryfilesystem-options.service | |
parent | man: add documents for TemporaryFileSystem= (diff) | |
download | systemd-4cac89bd7c449dad262e4b306b76611b80fb51cc.tar.xz systemd-4cac89bd7c449dad262e4b306b76611b80fb51cc.zip |
test: add tests for TemporaryFileSystem=
Diffstat (limited to 'test/test-execute/exec-temporaryfilesystem-options.service')
-rw-r--r-- | test/test-execute/exec-temporaryfilesystem-options.service | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test-execute/exec-temporaryfilesystem-options.service b/test/test-execute/exec-temporaryfilesystem-options.service new file mode 100644 index 0000000000..1d5d76c81c --- /dev/null +++ b/test/test-execute/exec-temporaryfilesystem-options.service @@ -0,0 +1,11 @@ +[Unit] +Description=Test for TemporaryFileSystem with mount options + +[Service] +Type=oneshot + +# Check /proc/self/mountinfo +ExecStart=/bin/sh -c 'test $$(awk \'$$5 == "/var" { print $$6 }\' /proc/self/mountinfo) = "ro,nodev,relatime"' +ExecStart=/bin/sh -c 'test $$(awk \'$$5 == "/var" { print $$11 }\' /proc/self/mountinfo) = "ro,mode=700"' + +TemporaryFileSystem=/var:ro,mode=0700,nostrictatime |