diff options
| author | Pascal Bach <pascal.bach@siemens.com> | 2018-05-25 15:58:19 +0200 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2018-05-29 10:25:40 -0400 |
| commit | d273f1f4916e54dd0e89802919f5b0ae6823562b (patch) | |
| tree | 11095a31ebb45a34c7398b0bfa5780ccac2eb9fa | |
| parent | 5b13da8e575ac746b46426f2471bf004b2201e41 (diff) | |
| download | meta-virtualization-d273f1f4916e54dd0e89802919f5b0ae6823562b.tar.gz | |
runc: allow enabling seccomp
This requires libseccomp from meta-security so it is not enabled by default.
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
| -rw-r--r-- | recipes-containers/runc/runc.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/recipes-containers/runc/runc.inc b/recipes-containers/runc/runc.inc index 9199cef9..6d11a6ef 100644 --- a/recipes-containers/runc/runc.inc +++ b/recipes-containers/runc/runc.inc | |||
| @@ -12,6 +12,10 @@ PV = "${RUNC_VERSION}+git${SRCPV}" | |||
| 12 | 12 | ||
| 13 | inherit go | 13 | inherit go |
| 14 | inherit goarch | 14 | inherit goarch |
| 15 | inherit pkgconfig | ||
| 16 | |||
| 17 | PACKAGECONFIG ??= "" | ||
| 18 | PACKAGECONFIG[seccomp] = "seccomp,,libseccomp" | ||
| 15 | 19 | ||
| 16 | RRECOMMENDS_${PN} = "lxc docker" | 20 | RRECOMMENDS_${PN} = "lxc docker" |
| 17 | PROVIDES += "virtual/runc" | 21 | PROVIDES += "virtual/runc" |
| @@ -22,7 +26,7 @@ GO_IMPORT = "import" | |||
| 22 | LIBCONTAINER_PACKAGE="github.com/opencontainers/runc/libcontainer" | 26 | LIBCONTAINER_PACKAGE="github.com/opencontainers/runc/libcontainer" |
| 23 | 27 | ||
| 24 | do_configure[noexec] = "1" | 28 | do_configure[noexec] = "1" |
| 25 | EXTRA_OEMAKE="BUILDTAGS='' GO=${GO}" | 29 | EXTRA_OEMAKE="BUILDTAGS='${PACKAGECONFIG_CONFARGS}' GO=${GO}" |
| 26 | 30 | ||
| 27 | do_compile() { | 31 | do_compile() { |
| 28 | # Set GOPATH. See 'PACKAGERS.md'. Don't rely on | 32 | # Set GOPATH. See 'PACKAGERS.md'. Don't rely on |
