mirror of
https://github.com/opencontainers/runc.git
synced 2025-09-26 19:41:35 +08:00
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:
@@ -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"
|
||||
|
||||
|
Reference in New Issue
Block a user