mirror of
https://github.com/moby/moby.git
synced 2026-08-03 22:51:03 +00:00
Update the runc binary that's used in CI and for the static packages. diff: https://github.com/opencontainers/runc/compare/v1.1.13...v1.1.14 Release Notes: - Fix CVE-2024-45310, a low-severity attack that allowed maliciously configured containers to create empty files and directories on the host. - Add support for Go 1.23. - Revert "allow overriding VERSION value in Makefile" and add EXTRA_VERSION. - rootfs: consolidate mountpoint creation logic. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
30 lines
947 B
Bash
Executable File
30 lines
947 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
# RUNC_VERSION specifies the version of runc to install from the
|
|
# https://github.com/opencontainers/runc repository.
|
|
#
|
|
# The version of runc should match the version that is used by the containerd
|
|
# version that is used. If you need to update runc, open a pull request in
|
|
# the containerd project first, and update both after that is merged.
|
|
#
|
|
# When updating RUNC_VERSION, consider updating runc in vendor.mod accordingly
|
|
: "${RUNC_VERSION:=v1.1.14}"
|
|
|
|
install_runc() {
|
|
RUNC_BUILDTAGS="${RUNC_BUILDTAGS:-"seccomp"}"
|
|
|
|
echo "Install runc version $RUNC_VERSION (build tags: $RUNC_BUILDTAGS)"
|
|
git clone https://github.com/opencontainers/runc.git "$GOPATH/src/github.com/opencontainers/runc"
|
|
cd "$GOPATH/src/github.com/opencontainers/runc"
|
|
git checkout -q "$RUNC_VERSION"
|
|
if [ -z "$1" ]; then
|
|
target=static
|
|
else
|
|
target="$1"
|
|
fi
|
|
make BUILDTAGS="$RUNC_BUILDTAGS" "$target"
|
|
mkdir -p "${PREFIX}"
|
|
cp runc "${PREFIX}/runc"
|
|
}
|