aboutsummaryrefslogtreecommitdiff
path: root/test/e2e/run_selinux_test.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2019-10-31 08:37:48 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2019-10-31 08:38:56 -0400
commit0eea8fbc468e4fbad3a7b46cf030518a3e7d3cca (patch)
tree93c38193539dcfceca3eb6ac18ec6c16d5d42588 /test/e2e/run_selinux_test.go
parent381fa4df875af3d2acee34d4fc1a608b2218b551 (diff)
downloadpodman-0eea8fbc468e4fbad3a7b46cf030518a3e7d3cca.tar.gz
podman-0eea8fbc468e4fbad3a7b46cf030518a3e7d3cca.tar.bz2
podman-0eea8fbc468e4fbad3a7b46cf030518a3e7d3cca.zip
Fix selinux test for exec
We want to make sure that the process label of pid 1 is the same as the process label of a process execed into the container. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/e2e/run_selinux_test.go')
-rw-r--r--test/e2e/run_selinux_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/e2e/run_selinux_test.go b/test/e2e/run_selinux_test.go
index ebc36b7f1..358137aa9 100644
--- a/test/e2e/run_selinux_test.go
+++ b/test/e2e/run_selinux_test.go
@@ -170,7 +170,7 @@ var _ = Describe("Podman run", func() {
setup.WaitWithDefaultTimeout()
Expect(setup.ExitCode()).To(Equal(0))
- session := podmanTest.Podman([]string{"exec", "test1", "cat", "/proc/self/attr/current"})
+ session := podmanTest.Podman([]string{"exec", "test1", "cat", "/proc/1/attr/current"})
session.WaitWithDefaultTimeout()
session1 := podmanTest.Podman([]string{"exec", "test1", "cat", "/proc/self/attr/current"})
session1.WaitWithDefaultTimeout()