diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-05-05 15:38:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-05 15:38:11 -0400 |
commit | 404bc2684edd14b20d02d8cd05ca3e6b6ee8888d (patch) | |
tree | 44d917aef41b2b1d6c1a2514184510f2ae0bdcb2 /test/e2e/run_test.go | |
parent | 0bd5da5b7fe0aad31d795cf5bea1b37c9053f791 (diff) | |
parent | 4fd1965ab4d1395b5cc4a0e03526ef9c43f794ec (diff) | |
download | podman-404bc2684edd14b20d02d8cd05ca3e6b6ee8888d.tar.gz podman-404bc2684edd14b20d02d8cd05ca3e6b6ee8888d.tar.bz2 podman-404bc2684edd14b20d02d8cd05ca3e6b6ee8888d.zip |
Merge pull request #10185 from rhatdan/volume
Add filepath glob support to --security-opt unmask
Diffstat (limited to 'test/e2e/run_test.go')
-rw-r--r-- | test/e2e/run_test.go | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go index 74bdfce2c..d8d7dab07 100644 --- a/test/e2e/run_test.go +++ b/test/e2e/run_test.go @@ -299,9 +299,17 @@ var _ = Describe("Podman run", func() { 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)) + Expect(session.OutputToStringArray()).Should(HaveLen(1)) + + session = podmanTest.Podman([]string{"run", "-d", "--security-opt", "unmask=/proc/*", ALPINE, "grep", "/proc", "/proc/self/mounts"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + Expect(session.OutputToStringArray()).Should(HaveLen(1)) + session = podmanTest.Podman([]string{"run", "--security-opt", "unmask=/proc/a*", ALPINE, "ls", "/proc/acpi"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + Expect(session.OutputToString()).To(Not(BeEmpty())) }) It("podman run security-opt unmask on /sys/fs/cgroup", func() { |