summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-12-09 15:04:41 -0500
committerGitHub <noreply@github.com>2020-12-09 15:04:41 -0500
commit059c2ee739c156287237c07e07f497602bd9958d (patch)
tree168f9e79a11e855d1bd46d93aa04211d106aab52 /test
parent4511cb3852cae5ca2ef3ee66c8e21699075b4e78 (diff)
parent176be90e0a94c7b073b1b4e0da5903b0440748d6 (diff)
downloadpodman-059c2ee739c156287237c07e07f497602bd9958d.tar.gz
podman-059c2ee739c156287237c07e07f497602bd9958d.tar.bz2
podman-059c2ee739c156287237c07e07f497602bd9958d.zip
Merge pull request #8669 from giuseppe/unmask-also-cover-ro-paths
security: honor systempaths=unconfined for ro paths
Diffstat (limited to 'test')
-rw-r--r--test/e2e/run_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go
index f73a15633..dbdd6a072 100644
--- a/test/e2e/run_test.go
+++ b/test/e2e/run_test.go
@@ -272,6 +272,13 @@ var _ = Describe("Podman run", func() {
session.WaitWithDefaultTimeout()
Expect(session.OutputToString()).To(Not(BeEmpty()))
Expect(session.ExitCode()).To(Equal(0))
+
+ session = podmanTest.Podman([]string{"run", "-d", "--name=maskCtr5", "--security-opt", "systempaths=unconfined", ALPINE, "grep", "/proc", "/proc/self/mounts"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ stdoutLines := session.OutputToStringArray()
+ Expect(stdoutLines).Should(HaveLen(1))
+
})
It("podman run seccomp test", func() {