From f26bdea05c499ba544198afc95e7a4b344c4d3ba Mon Sep 17 00:00:00 2001 From: Pascal Bach Date: Fri, 25 May 2018 15:58:20 +0200 Subject: docker: allow enabling seccomp This requires libseccomp from meta-security so it is not enabled by default. Signed-off-by: Pascal Bach Signed-off-by: Bruce Ashfield --- recipes-containers/docker/docker_git.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/recipes-containers/docker/docker_git.bb b/recipes-containers/docker/docker_git.bb index e055a4f6..790170e9 100644 --- a/recipes-containers/docker/docker_git.bb +++ b/recipes-containers/docker/docker_git.bb @@ -62,6 +62,9 @@ DEPENDS = " \ libtool \ " +PACKAGECONFIG ??= "" +PACKAGECONFIG[seccomp] = "seccomp,,libseccomp" + PACKAGES =+ "${PN}-contrib" DEPENDS_append_class-target = " lvm2" @@ -105,7 +108,7 @@ do_compile() { export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" # in order to exclude devicemapper and btrfs - https://github.com/docker/docker/issues/14056 - export DOCKER_BUILDTAGS='exclude_graphdriver_btrfs exclude_graphdriver_devicemapper' + export DOCKER_BUILDTAGS='exclude_graphdriver_btrfs exclude_graphdriver_devicemapper ${PACKAGECONFIG_CONFARGS}' export DISABLE_WARN_OUTSIDE_CONTAINER=1 -- cgit v1.2.3-54-g00ecf