summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-10-30 14:29:54 +0100
committerGitHub <noreply@github.com>2019-10-30 14:29:54 +0100
commit2e8eb8403d4a25bc9c9e60ed28ed09d2fda7a088 (patch)
treeecc0ca29dc13f0e59fbce98f72a191157ce4e333 /test
parent7318b0e8c75f50d909f88b9878580fcc53998900 (diff)
parent0b9e07f7f289da6fda83bcb1660e345cf894a6b6 (diff)
downloadpodman-2e8eb8403d4a25bc9c9e60ed28ed09d2fda7a088.tar.gz
podman-2e8eb8403d4a25bc9c9e60ed28ed09d2fda7a088.tar.bz2
podman-2e8eb8403d4a25bc9c9e60ed28ed09d2fda7a088.zip
Merge pull request #4372 from rhatdan/exec
Processes execed into container should match container label
Diffstat (limited to 'test')
-rw-r--r--test/e2e/exec_test.go1
-rw-r--r--test/e2e/run_selinux_test.go12
2 files changed, 13 insertions, 0 deletions
diff --git a/test/e2e/exec_test.go b/test/e2e/exec_test.go
index 1c4a9adb9..ed4eb3335 100644
--- a/test/e2e/exec_test.go
+++ b/test/e2e/exec_test.go
@@ -243,4 +243,5 @@ var _ = Describe("Podman exec", func() {
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
})
+
})
diff --git a/test/e2e/run_selinux_test.go b/test/e2e/run_selinux_test.go
index 0c78ab15b..ebc36b7f1 100644
--- a/test/e2e/run_selinux_test.go
+++ b/test/e2e/run_selinux_test.go
@@ -165,4 +165,16 @@ var _ = Describe("Podman run", func() {
Expect(session.ExitCode()).To(Equal(126))
})
+ It("podman exec selinux check", func() {
+ setup := podmanTest.RunTopContainer("test1")
+ setup.WaitWithDefaultTimeout()
+ Expect(setup.ExitCode()).To(Equal(0))
+
+ session := podmanTest.Podman([]string{"exec", "test1", "cat", "/proc/self/attr/current"})
+ session.WaitWithDefaultTimeout()
+ session1 := podmanTest.Podman([]string{"exec", "test1", "cat", "/proc/self/attr/current"})
+ session1.WaitWithDefaultTimeout()
+ Expect(session.OutputToString()).To(Equal(session1.OutputToString()))
+ })
+
})