From 01fb3aaae4f6a55882eaa13b84523b0db27dab43 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Mon, 23 Jun 2025 11:42:11 +0200 Subject: [PATCH] test/e2e: fix "with unsafe hostPath subpaths" test A recent pasta update changed the selinux rules and we now run pasta under pasta_t and no longer the container_runtime_t type. The pasta type has much stricter type rules on what the file we hand it must be labelled. This test tries to mount the runroot which gets relabeled with the container_file_t type but that means pasta can no longer access its pid file we give it. To fix this test here simply mount a subdir. see #26473 Signed-off-by: Paul Holzinger --- test/e2e/play_kube_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/play_kube_test.go b/test/e2e/play_kube_test.go index 29dec3d434..b3354b6eff 100644 --- a/test/e2e/play_kube_test.go +++ b/test/e2e/play_kube_test.go @@ -5549,7 +5549,7 @@ spec: }) It("with unsafe hostPath subpaths", func() { - hostPathLocation := podmanTest.TempDir + hostPathLocation := filepath.Join(podmanTest.TempDir, "vol") Expect(os.MkdirAll(filepath.Join(hostPathLocation, "testing"), 0755)).To(Succeed()) Expect(os.Symlink("/", filepath.Join(hostPathLocation, "testing", "symlink"))).To(Succeed())