diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-08-13 21:11:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-13 21:11:21 +0200 |
commit | 9ede14e1cd3d3fa6cac0dbb0a7286a8fc0118376 (patch) | |
tree | e9d934d7ac27a2792008128f0c8acbd412818225 /test | |
parent | 90831dfdced0f52867c47cac75b5ea09e0e916c2 (diff) | |
parent | feff414ae1d4ca68b3341fa37c4abf8fc90a55f8 (diff) | |
download | podman-9ede14e1cd3d3fa6cac0dbb0a7286a8fc0118376.tar.gz podman-9ede14e1cd3d3fa6cac0dbb0a7286a8fc0118376.tar.bz2 podman-9ede14e1cd3d3fa6cac0dbb0a7286a8fc0118376.zip |
Merge pull request #7227 from giuseppe/procfs-opts
run, create: add new security-opt proc-opts
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/run_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go index 30e565894..6c65a23e8 100644 --- a/test/e2e/run_test.go +++ b/test/e2e/run_test.go @@ -827,6 +827,15 @@ USER mail` Expect(isSharedOnly).Should(BeTrue()) }) + It("podman run --security-opts proc-opts=", func() { + session := podmanTest.Podman([]string{"run", "--security-opt", "proc-opts=nosuid,exec", fedoraMinimal, "findmnt", "-noOPTIONS", "/proc"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + output := session.OutputToString() + Expect(output).To(ContainSubstring("nosuid")) + Expect(output).To(Not(ContainSubstring("exec"))) + }) + It("podman run --mount type=bind,bind-nonrecursive", func() { SkipIfRootless() session := podmanTest.Podman([]string{"run", "--mount", "type=bind,bind-nonrecursive,slave,src=/,target=/host", fedoraMinimal, "findmnt", "-nR", "/host"}) |