test: ensure 'InaccessiblePaths=/proc' option works (#6017)

Test case for PR #5985.
This commit is contained in:
Timothée Ravier
2017-05-25 07:47:08 +03:00
committed by Evgeny Vereshchagin
parent b23aec0d6b
commit c090d74dd9
4 changed files with 14 additions and 0 deletions
@@ -0,0 +1,7 @@
[Unit]
Description=Test to make sure that mount namespace setup works properly with the 'InaccessiblePaths=/proc' option
[Service]
InaccessiblePaths=/proc
ExecStart=/bin/sh -x -c 'test "$$(stat -c %%a /proc)" = "0"'
Type=oneshot