test: add a testcase for ProtectHome=tmpfs vs ProtectSystem=strict

This commit is contained in:
Yu Watanabe
2019-03-13 11:53:59 +09:00
parent 5beb8688e0
commit 7e46b29bd3
3 changed files with 15 additions and 0 deletions
@@ -0,0 +1,9 @@
[Unit]
Description=Test ProtectHome=tmpfs vs ProtectSystem=strict
# Test for #11276
[Service]
ProtectHome=tmpfs
ProtectSystem=strict
Type=oneshot
ExecStart=/bin/sh -x -c 'test "$$(stat -fc %%T /home)" = "tmpfs"'