mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-23 02:06:47 +00:00
Merge pull request #4762 from arronwy/cryptsetup
CC | Add cryptsetup support in Guest kernel and rootfs
This commit is contained in:
commit
bb196d56ca
@ -450,6 +450,7 @@ build_rootfs_distro()
|
|||||||
--env SKOPEO="${SKOPEO}" \
|
--env SKOPEO="${SKOPEO}" \
|
||||||
--env UMOCI="${UMOCI}" \
|
--env UMOCI="${UMOCI}" \
|
||||||
--env AA_KBC="${AA_KBC}" \
|
--env AA_KBC="${AA_KBC}" \
|
||||||
|
--env KATA_BUILD_CC="${KATA_BUILD_CC}" \
|
||||||
--env SECCOMP="${SECCOMP}" \
|
--env SECCOMP="${SECCOMP}" \
|
||||||
--env DEBUG="${DEBUG}" \
|
--env DEBUG="${DEBUG}" \
|
||||||
--env HOME="/root" \
|
--env HOME="/root" \
|
||||||
|
@ -7,6 +7,7 @@ OS_NAME=ubuntu
|
|||||||
OS_VERSION=${OS_VERSION:-focal}
|
OS_VERSION=${OS_VERSION:-focal}
|
||||||
PACKAGES="chrony iptables"
|
PACKAGES="chrony iptables"
|
||||||
[ "$AGENT_INIT" = no ] && PACKAGES+=" init"
|
[ "$AGENT_INIT" = no ] && PACKAGES+=" init"
|
||||||
|
[ "$KATA_BUILD_CC" = yes ] && PACKAGES+=" cryptsetup-bin e2fsprogs"
|
||||||
[ "$SECCOMP" = yes ] && PACKAGES+=" libseccomp2"
|
[ "$SECCOMP" = yes ] && PACKAGES+=" libseccomp2"
|
||||||
[ "$SKOPEO" = yes ] && PACKAGES+=" libgpgme11"
|
[ "$SKOPEO" = yes ] && PACKAGES+=" libgpgme11"
|
||||||
REPO_URL=http://ports.ubuntu.com
|
REPO_URL=http://ports.ubuntu.com
|
||||||
|
@ -45,6 +45,7 @@ docker run \
|
|||||||
--env SKOPEO="${SKOPEO:-}" \
|
--env SKOPEO="${SKOPEO:-}" \
|
||||||
--env UMOCI="${UMOCI:-}" \
|
--env UMOCI="${UMOCI:-}" \
|
||||||
--env AA_KBC="${AA_KBC:-}" \
|
--env AA_KBC="${AA_KBC:-}" \
|
||||||
|
--env KATA_BUILD_CC="${KATA_BUILD_CC:-}" \
|
||||||
--env INCLUDE_ROOTFS="$(realpath "${INCLUDE_ROOTFS:-}" 2> /dev/null || true)" \
|
--env INCLUDE_ROOTFS="$(realpath "${INCLUDE_ROOTFS:-}" 2> /dev/null || true)" \
|
||||||
-v "${kata_dir}:${kata_dir}" \
|
-v "${kata_dir}:${kata_dir}" \
|
||||||
--rm \
|
--rm \
|
||||||
|
@ -116,6 +116,7 @@ install_cc_image() {
|
|||||||
export SKOPEO=yes
|
export SKOPEO=yes
|
||||||
export UMOCI=yes
|
export UMOCI=yes
|
||||||
export AA_KBC="offline_fs_kbc"
|
export AA_KBC="offline_fs_kbc"
|
||||||
|
export KATA_BUILD_CC=yes
|
||||||
|
|
||||||
"${rootfs_builder}" --imagetype=image --prefix="${cc_prefix}" --destdir="${destdir}"
|
"${rootfs_builder}" --imagetype=image --prefix="${cc_prefix}" --destdir="${destdir}"
|
||||||
}
|
}
|
||||||
|
@ -242,6 +242,10 @@ get_kernel_frag_path() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${conf_guest}" != "" ]];then
|
if [[ "${conf_guest}" != "" ]];then
|
||||||
|
info "Enabling config for confidential guest trust storage protection"
|
||||||
|
local cryptsetup_configs="$(ls ${common_path}/confidential_containers/cryptsetup.conf)"
|
||||||
|
all_configs="${all_configs} ${cryptsetup_configs}"
|
||||||
|
|
||||||
info "Enabling config for '${conf_guest}' confidential guest protection"
|
info "Enabling config for '${conf_guest}' confidential guest protection"
|
||||||
local conf_configs="$(ls ${arch_path}/${conf_guest}/*.conf)"
|
local conf_configs="$(ls ${arch_path}/${conf_guest}/*.conf)"
|
||||||
all_configs="${all_configs} ${conf_configs}"
|
all_configs="${all_configs} ${conf_configs}"
|
||||||
|
@ -0,0 +1,21 @@
|
|||||||
|
CONFIG_MD=y
|
||||||
|
CONFIG_BLK_DEV_DM_BUILTIN=y
|
||||||
|
CONFIG_BLK_DEV_DM=y
|
||||||
|
CONFIG_DM_CRYPT=y
|
||||||
|
CONFIG_DM_VERITY=y
|
||||||
|
CONFIG_DM_INTEGRITY=y
|
||||||
|
CONFIG_CRYPTO_AEAD=y
|
||||||
|
CONFIG_CRYPTO_AEAD2=y
|
||||||
|
CONFIG_CRYPTO_AKCIPHER2=y
|
||||||
|
CONFIG_CRYPTO_KPP2=y
|
||||||
|
CONFIG_CRYPTO_MANAGER=y
|
||||||
|
CONFIG_CRYPTO_MANAGER2=y
|
||||||
|
CONFIG_CRYPTO_USER=y
|
||||||
|
CONFIG_CRYPTO_NULL=y
|
||||||
|
CONFIG_CRYPTO_NULL2=y
|
||||||
|
CONFIG_CRYPTO_CRYPTD=y
|
||||||
|
CONFIG_CRYPTO_AUTHENC=y
|
||||||
|
CONFIG_CRYPTO_CBC=y
|
||||||
|
CONFIG_CRYPTO_ESSIV=y
|
||||||
|
CONFIG_CRYPTO_XTS=y
|
||||||
|
CONFIG_CRYPTO_HMAC=y
|
@ -0,0 +1,3 @@
|
|||||||
|
# x86 cryptographic instructions to improve AES encryption and SHA256 hashing.
|
||||||
|
CONFIG_CRYPTO_SHA256_SSSE3=y
|
||||||
|
CONFIG_CRYPTO_AES_NI_INTEL=y
|
Loading…
Reference in New Issue
Block a user