From c5e7bc8710c43b12b3a621e28c5fa037a3d6f653 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Wed, 27 Aug 2025 17:43:38 -0700 Subject: [PATCH] tests/int/selinux: fix for non-standard binary name The setup in selinux.bats assumes $RUNC binary name ends in runc, and thus it fails when we run it like this: sudo -E RUNC=$(pwd)/runc.patched bats tests/integration/selinux.bats Fix is easy. Fixes: b39781b06 ("tests/int: add selinux test case") Signed-off-by: Kir Kolyshkin --- tests/integration/selinux.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/selinux.bats b/tests/integration/selinux.bats index 40a122e06..66665c450 100644 --- a/tests/integration/selinux.bats +++ b/tests/integration/selinux.bats @@ -11,7 +11,7 @@ function setup() { setup_busybox # Use a copy of runc binary with proper selinux label set. - cp "$RUNC" . + cp "$RUNC" ./runc export RUNC="$PWD/runc" chcon -u system_u -r object_r -t container_runtime_exec_t "$RUNC"