summaryrefslogtreecommitdiff
path: root/test/e2e/systemd_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-09-02 13:47:12 -0400
committerGitHub <noreply@github.com>2020-09-02 13:47:12 -0400
commitfa487a65220951e84779f200f48780666b4b9209 (patch)
treecb71124cb22c024cce904c91ba056a7047f04d78 /test/e2e/systemd_test.go
parent37791d717f85c0621932aa18cd4c2477426a2de0 (diff)
parentd68a6b52ecd5354dccfb2f62dd7b06518200fa28 (diff)
downloadpodman-fa487a65220951e84779f200f48780666b4b9209.tar.gz
podman-fa487a65220951e84779f200f48780666b4b9209.tar.bz2
podman-fa487a65220951e84779f200f48780666b4b9209.zip
Merge pull request #7532 from rhatdan/run
We should not be mounting /run as noexec when run with --systemd
Diffstat (limited to 'test/e2e/systemd_test.go')
-rw-r--r--test/e2e/systemd_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/e2e/systemd_test.go b/test/e2e/systemd_test.go
index b5114e429..9a3247b77 100644
--- a/test/e2e/systemd_test.go
+++ b/test/e2e/systemd_test.go
@@ -146,4 +146,12 @@ WantedBy=multi-user.target
Expect(len(conData)).To(Equal(1))
Expect(conData[0].Config.SystemdMode).To(BeTrue())
})
+
+ It("podman run --systemd container should NOT mount /run noexec", func() {
+ session := podmanTest.Podman([]string{"run", "--systemd", "always", ALPINE, "sh", "-c", "mount | grep \"/run \""})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+
+ Expect(session.OutputToString()).To(Not(ContainSubstring("noexec")))
+ })
})