diff options
author | Timothée Ravier <tim@siosm.fr> | 2017-05-25 06:47:08 +0200 |
---|---|---|
committer | Evgeny Vereshchagin <evvers@ya.ru> | 2017-05-25 07:47:08 +0300 |
commit | c090d74dd974994552f1a29a2d65400f0c07dd9a (patch) | |
tree | 13ea7000d916c31e9330bc31c864ba3c1e9ae367 /test/test-execute | |
parent | b23aec0d6b98bc99998786506a8769e1a1ea1841 (diff) | |
download | systemd-c090d74dd974994552f1a29a2d65400f0c07dd9a.tar.gz |
test: ensure 'InaccessiblePaths=/proc' option works (#6017)
Test case for PR #5985.
Diffstat (limited to 'test/test-execute')
-rw-r--r-- | test/test-execute/exec-inaccessiblepaths-proc.service | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test-execute/exec-inaccessiblepaths-proc.service b/test/test-execute/exec-inaccessiblepaths-proc.service new file mode 100644 index 0000000000..ebdb4843d1 --- /dev/null +++ b/test/test-execute/exec-inaccessiblepaths-proc.service @@ -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 |