diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-10-24 01:07:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-24 01:07:51 +0200 |
commit | 299a430759c236400188dcf77c7da2a97649cdcb (patch) | |
tree | 6b231af063a8e09c90dd1351cd66e9a5ebfa1f64 /test/e2e/run_volume_test.go | |
parent | 4b8832a9af85471bab64963bea42d8e54fad0877 (diff) | |
parent | 57eaea9539bb18d683cbac28a6a1b1b09e744944 (diff) | |
download | podman-299a430759c236400188dcf77c7da2a97649cdcb.tar.gz podman-299a430759c236400188dcf77c7da2a97649cdcb.tar.bz2 podman-299a430759c236400188dcf77c7da2a97649cdcb.zip |
Merge pull request #4329 from mheon/no_noexec_image_volume
Image volumes should not be mounted noexec
Diffstat (limited to 'test/e2e/run_volume_test.go')
-rw-r--r-- | test/e2e/run_volume_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/e2e/run_volume_test.go b/test/e2e/run_volume_test.go index d04eb07b3..c96059787 100644 --- a/test/e2e/run_volume_test.go +++ b/test/e2e/run_volume_test.go @@ -357,4 +357,11 @@ var _ = Describe("Podman run with volumes", func() { Expect(len(arr2)).To(Equal(1)) Expect(arr2[0]).To(Equal(volName)) }) + + It("podman run image volume is not noexec", func() { + session := podmanTest.Podman([]string{"run", "--rm", redis, "grep", "/data", "/proc/self/mountinfo"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + Expect(session.OutputToString()).To(Not(ContainSubstring("noexec"))) + }) }) |