935bd589a3
CVE-2021-43816: "Unprivileged pod using `hostPath` can side-step active LSM when it is SELinux" Containers launched through containerd’s CRI implementation on Linux systems which use the SELinux security module and containerd versions since v1.5.0 can cause arbitrary files and directories on the host to be relabeled to match the container process label through the use of specially-configured bind mounts in a hostPath volume. This relabeling elevates permissions for the container, granting full read/write access over the affected files and directories. Kubernetes and crictl can both be configured to use containerd’s CRI implementation. https://github.com/advisories/GHSA-mvff-h3cj-wj9c https://github.com/containerd/containerd/releases/tag/v1.5.9 Signed-off-by: Christian Stewart <christian@paral.in> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# containerd
|
|
#
|
|
################################################################################
|
|
|
|
CONTAINERD_VERSION = 1.5.9
|
|
CONTAINERD_SITE = $(call github,containerd,containerd,v$(CONTAINERD_VERSION))
|
|
CONTAINERD_LICENSE = Apache-2.0
|
|
CONTAINERD_LICENSE_FILES = LICENSE
|
|
CONTAINERD_CPE_ID_VENDOR = linuxfoundation
|
|
CONTAINERD_CPE_ID_PRODUCT = containerd
|
|
|
|
CONTAINERD_GOMOD = github.com/containerd/containerd
|
|
|
|
CONTAINERD_LDFLAGS = \
|
|
-X $(CONTAINERD_GOMOD)/version.Version=$(CONTAINERD_VERSION)
|
|
|
|
CONTAINERD_BUILD_TARGETS = \
|
|
cmd/containerd \
|
|
cmd/containerd-shim \
|
|
cmd/containerd-shim-runc-v1 \
|
|
cmd/containerd-shim-runc-v2 \
|
|
cmd/ctr
|
|
|
|
CONTAINERD_INSTALL_BINS = $(notdir $(CONTAINERD_BUILD_TARGETS))
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBAPPARMOR),y)
|
|
CONTAINERD_DEPENDENCIES += libapparmor
|
|
CONTAINERD_TAGS += apparmor
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
|
|
CONTAINERD_DEPENDENCIES += libseccomp host-pkgconf
|
|
CONTAINERD_TAGS += seccomp
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CONTAINERD_DRIVER_BTRFS),y)
|
|
CONTAINERD_DEPENDENCIES += btrfs-progs
|
|
else
|
|
CONTAINERD_TAGS += no_btrfs
|
|
endif
|
|
|
|
$(eval $(golang-package))
|