summaryrefslogtreecommitdiff
path: root/test/test-execute
diff options
context:
space:
mode:
authorTimothée Ravier <tim@siosm.fr>2017-05-25 06:47:08 +0200
committerEvgeny Vereshchagin <evvers@ya.ru>2017-05-25 07:47:08 +0300
commitc090d74dd974994552f1a29a2d65400f0c07dd9a (patch)
tree13ea7000d916c31e9330bc31c864ba3c1e9ae367 /test/test-execute
parentb23aec0d6b98bc99998786506a8769e1a1ea1841 (diff)
downloadsystemd-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.service7
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