From 88e4e4c82e0d5da27ce522f82f5dad2afdabb7b1 Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Wed, 24 Aug 2022 15:38:14 +0200 Subject: vendor containers/psgo@v1.7.3 Add three new capabilities that would otherwise be reported as unknown. Also add an e2e test making sure that `podman top` knows all capabilities of the current kernel. I refrained from adding a system test since this may blow up in gating tests. Signed-off-by: Valentin Rothberg --- test/e2e/top_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/e2e/top_test.go') diff --git a/test/e2e/top_test.go b/test/e2e/top_test.go index 66bb887dc..5f51742d1 100644 --- a/test/e2e/top_test.go +++ b/test/e2e/top_test.go @@ -133,4 +133,15 @@ var _ = Describe("Podman top", func() { Expect(result).Should(Exit(125)) }) + It("podman top on privileged container", func() { + session := podmanTest.Podman([]string{"run", "--privileged", "-d", ALPINE, "top"}) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + cid := session.OutputToString() + + result := podmanTest.Podman([]string{"top", cid, "capeff"}) + result.WaitWithDefaultTimeout() + Expect(result).Should(Exit(0)) + Expect(result.OutputToStringArray()).To(Equal([]string{"EFFECTIVE CAPS", "full"})) + }) }) -- cgit v1.2.3-54-g00ecf