summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-08-23 06:45:33 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-08-26 02:54:37 +0900
commit42867dfeef68233b08f3eb3b90f8fa0500a6451a (patch)
tree6498998eb7c325d68c163b1f81384877b139fb0a /test
parentaa2727517e03d21a2784fe79d9707118892f39f2 (diff)
downloadsystemd-42867dfeef68233b08f3eb3b90f8fa0500a6451a.tar.gz
test-execute: add a testcase for MountAPIVFS=no
Diffstat (limited to 'test')
-rw-r--r--test/test-execute/exec-mount-apivfs-no.service15
-rw-r--r--test/test-functions1
2 files changed, 16 insertions, 0 deletions
diff --git a/test/test-execute/exec-mount-apivfs-no.service b/test/test-execute/exec-mount-apivfs-no.service
new file mode 100644
index 0000000000..0cf1f332e6
--- /dev/null
+++ b/test/test-execute/exec-mount-apivfs-no.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Test for find_executable() with MountAPIVFS=no
+
+[Service]
+Type=oneshot
+
+MountAPIVFS=false
+PrivateDevices=false
+PrivateMounts=true
+PrivateTmp=false
+PrivateUsers=false
+ProtectControlGroups=false
+ProtectKernelModules=false
+ProtectKernelTunables=false
+RootDirectory=/tmp/test-exec-mount-apivfs-no/root
diff --git a/test/test-functions b/test/test-functions
index 436d9e0ef3..a2b92aeba8 100644
--- a/test/test-functions
+++ b/test/test-functions
@@ -148,6 +148,7 @@ BASICTOOLS=(
head
ionice
ip
+ ldd
ln
loadkeys
login