summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-12-08 12:19:26 -0500
committerGitHub <noreply@github.com>2020-12-08 12:19:26 -0500
commit3bf02fb00a6ef23a55f818198107cf468b45ccf5 (patch)
tree045409be8977c91789074ab90f6a3bb7bfae218e /test/e2e
parent0cccba834ff2939579f7ef4c340a9337dc9d7d2c (diff)
parent239bd57662162e9754421a31db9cf529cee8d701 (diff)
downloadpodman-3bf02fb00a6ef23a55f818198107cf468b45ccf5.tar.gz
podman-3bf02fb00a6ef23a55f818198107cf468b45ccf5.tar.bz2
podman-3bf02fb00a6ef23a55f818198107cf468b45ccf5.zip
Merge pull request #8630 from umohnani8/sec-opt
Add systempaths=unconfined option
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/run_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go
index 58ef9a647..f73a15633 100644
--- a/test/e2e/run_test.go
+++ b/test/e2e/run_test.go
@@ -264,6 +264,14 @@ var _ = Describe("Podman run", func() {
session.WaitWithDefaultTimeout()
Expect(session.OutputToString()).To(BeEmpty())
Expect(session.ExitCode()).To(Equal(0))
+
+ session = podmanTest.Podman([]string{"run", "-d", "--name=maskCtr4", "--security-opt", "systempaths=unconfined", ALPINE, "sleep", "200"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ session = podmanTest.Podman([]string{"exec", "maskCtr4", "ls", "/sys/firmware"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.OutputToString()).To(Not(BeEmpty()))
+ Expect(session.ExitCode()).To(Equal(0))
})
It("podman run seccomp test", func() {