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 <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2025-08-27 17:43:38 -07:00
parent cc8ab60e1a
commit c5e7bc8710

View File

@@ -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"