From c8950d4f90be4fdf15b14fa0c79501cead2dd835 Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Mon, 19 Nov 2018 12:26:13 +0000 Subject: [PATCH] rootfs: Add seccomp for debian+suse Add missing seccomp packages for Debian and openSuSE config files. Signed-off-by: James O. D. Hunt --- rootfs-builder/debian/config.sh | 2 ++ rootfs-builder/suse/config.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/rootfs-builder/debian/config.sh b/rootfs-builder/debian/config.sh index 698a128b..a9a18484 100644 --- a/rootfs-builder/debian/config.sh +++ b/rootfs-builder/debian/config.sh @@ -16,3 +16,5 @@ INIT_PROCESS=systemd # List of zero or more architectures to exclude from build, # as reported by `uname -m` ARCH_EXCLUDE_LIST=() + +[ "$SECCOMP" = "yes" ] && PACKAGES+=" libseccomp2" diff --git a/rootfs-builder/suse/config.sh b/rootfs-builder/suse/config.sh index 8f435256..5e970e24 100644 --- a/rootfs-builder/suse/config.sh +++ b/rootfs-builder/suse/config.sh @@ -52,3 +52,5 @@ SUSE_FULLURL_UPDATE="${SUSE_URL_BASE}${SUSE_PATH_UPDATE}" if [ -z "${REPO_URL:-}" ]; then REPO_URL="$SUSE_FULLURL_OSS" fi + +[ "$SECCOMP" = "yes" ] && PACKAGES+=" libseccomp2"