runc: allow enabling seccomp
PATCH 1/2 runc: allow enabling seccomp
This requires libseccomp from meta-security so it is not enabled by default.
--- recipes-containers/runc/runc.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
recipes-containers/runc/runc.inc +5 -1
@@ -12,6 +12,10 @@ PV = "${RUNC_VERSION}+git${SRCPV}" inherit go inherit goarch +inherit pkgconfig + +PACKAGECONFIG ??= "" +PACKAGECONFIG[seccomp] = "seccomp,,libseccomp" RRECOMMENDS_${PN} = "lxc docker" PROVIDES += "virtual/runc"
@@ -22,7 +26,7 @@ GO_IMPORT = "import" LIBCONTAINER_PACKAGE="github.com/opencontainers/runc/libcontainer" do_configure[noexec] = "1" -EXTRA_OEMAKE="BUILDTAGS='' GO=${GO}" +EXTRA_OEMAKE="BUILDTAGS='${PACKAGECONFIG_CONFARGS}' GO=${GO}" do_compile() { # Set GOPATH. See 'PACKAGERS.md'. Don't rely on
Signature · 1 line
2.11.0
PATCH 2/2 docker: allow enabling seccomp
This requires libseccomp from meta-security so it is not enabled by default.
--- recipes-containers/docker/docker_git.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
recipes-containers/docker/docker_git.bb +4 -1
@@ -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
Signature · 1 line
2.11.0
Re: [PATCH 2/2] docker: allow enabling seccomp
merged.
Bruce
Quoted 44 lines · Pascal Bach
This requires libseccomp from meta-security so it is not enabled by default.
Signed-off-by Pascal Bach <[email protected]>--- recipes-containers/docker/docker_git.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)recipes-containers/docker/docker_git.bb +3
-0@@ -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_btrfsexclude_graphdriver_devicemapper'
+ export DOCKER_BUILDTAGS='exclude_graphdriver_btrfsexclude_graphdriver_devicemapper${PACKAGECONFIG_CONFARGS}'export DISABLE_WARN_OUTSIDE_CONTAINER=1
--
2.11.0--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
merged.
Bruce
Quoted 42 lines · Pascal Bach
This requires libseccomp from meta-security so it is not enabled by default.
Signed-off-by Pascal Bach <[email protected]>--- recipes-containers/runc/runc.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)recipes-containers/runc/ renamed from recipes-containers/runc/runc.inc +0
-0runc.inc
index 9199cef..6d11a6e 100644recipes-containers/runc/runc.inc +5
-2@@ -12,6 +12,10 @@ PV = "${RUNC_VERSION}+git${SRCPV}" inherit go inherit goarch +inherit pkgconfig + +PACKAGECONFIG ??= "" +PACKAGECONFIG[seccomp] = "seccomp,,libseccomp" RRECOMMENDS_${PN} = "lxc docker" PROVIDES += "virtual/runc"@@ -22,7 +26,7 @@ GO_IMPORT = "import" LIBCONTAINER_PACKAGE="github.com/opencontainers/runc/libcontainer" do_configure[noexec] = "1" -EXTRA_OEMAKE="BUILDTAGS='' GO=${GO}" +EXTRA_OEMAKE="BUILDTAGS='${PACKAGECONFIG_CONFARGS}' GO=${GO}" do_compile() { # Set GOPATH. See 'PACKAGERS.md'. Don't rely on --2.11.0
--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
Quoted 10 lines · Bruce Ashfield
merged.
Bruce
On Fri, May 25, 2018 at 9:58 AM, Pascal Bach <[email protected] <mailto:[email protected]>> wrote:
This requires libseccomp from meta-security so it is not enabled by default.
will there be a patch to add this dependency to the layer.conf ?
- armin
Quoted 53 lines
Signed-off-by: Pascal Bach <[email protected] <mailto:[email protected]>> --- recipes-containers/runc/runc.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/recipes-containers/runc/runc.inc b/recipes-containers/runc/runc.inc index 9199cef..6d11a6e 100644 --- a/recipes-containers/runc/runc.inc +++ b/recipes-containers/runc/runc.inc @@ -12,6 +12,10 @@ PV = "${RUNC_VERSION}+git${SRCPV}" inherit go inherit goarch +inherit pkgconfig + +PACKAGECONFIG ??= "" +PACKAGECONFIG[seccomp] = "seccomp,,libseccomp" RRECOMMENDS_${PN} = "lxc docker" PROVIDES += "virtual/runc" @@ -22,7 +26,7 @@ GO_IMPORT = "import" LIBCONTAINER_PACKAGE="github.com/opencontainers/runc/libcontainer <http://github.com/opencontainers/runc/libcontainer>" do_configure[noexec] = "1" -EXTRA_OEMAKE="BUILDTAGS='' GO=${GO}" +EXTRA_OEMAKE="BUILDTAGS='${PACKAGECONFIG_CONFARGS}' GO=${GO}" do_compile() { # Set GOPATH. See 'PACKAGERS.md'. Don't rely on -- 2.11.0 -- _______________________________________________ meta-virtualization mailing list [email protected] <mailto:[email protected]> https://lists.yoctoproject.org/listinfo/meta-virtualization <https://lists.yoctoproject.org/listinfo/meta-virtualization>Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
Quoted 8 lines · On Tue, May 29, 2018 at 10:33 AM, akuster808 <[email protected]> wrote:
On 05/29/2018 07:25 AM, Bruce Ashfield wrote:
merged.
Bruce
Quoted 9 lines
Quoted 3 lines · Pascal Bach
This requires libseccomp from meta-security so it is not enabled by default.
will there be a patch to add this dependency to the layer.conf ?
We just tweaked it, but yes it will need another patch.
But that dependency is conditional, do we have examples of how to make the layer.conf dependency conditional ? We may need a distro or other feature, I suppose.
Bruce
Quoted 53 lines
- armin
Quoted 33 lines
Signed-off-by Pascal Bach <[email protected]>--- recipes-containers/runc/runc.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)recipes-containers/runc/runc.inc +5
-2@@ -12,6 +12,10 @@ PV = "${RUNC_VERSION}+git${SRCPV}" inherit go inherit goarch +inherit pkgconfig + +PACKAGECONFIG ??= "" +PACKAGECONFIG[seccomp] = "seccomp,,libseccomp" RRECOMMENDS_${PN} = "lxc docker" PROVIDES += "virtual/runc"@@ -22,7 +26,7 @@ GO_IMPORT = "import" LIBCONTAINER_PACKAGE="github.com/opencontainers/runc/libcontainer" do_configure[noexec] = "1" -EXTRA_OEMAKE="BUILDTAGS='' GO=${GO}" +EXTRA_OEMAKE="BUILDTAGS='${PACKAGECONFIG_CONFARGS}' GO=${GO}" do_compile() { # Set GOPATH. See 'PACKAGERS.md'. Don't rely on --2.11.0
Quoted 6 lines
--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
Quoted 23 lines · Bruce Ashfield
On Tue, May 29, 2018 at 10:33 AM, akuster808 <[email protected] <mailto:[email protected]>> wrote:
On 05/29/2018 07:25 AM, Bruce Ashfield wrote:Quoted 10 lines
merged.
Bruce
On Fri, May 25, 2018 at 9:58 AM, Pascal Bach <[email protected] <mailto:[email protected]>> wrote:
This requires libseccomp from meta-security so it is not enabled by default.
will there be a patch to add this dependency to the layer.conf ?
Quoted 5 lines
We just tweaked it, but yes it will need another patch.
But that dependency is conditional, do we have examples of how to make the layer.conf dependency conditional ? We may need a distro or other feature, I suppose.
or we just move libseccomp to meta-oe and call it a day ; ) ( something I have been thinking about for a while)
- armin
Quoted 68 lines
Bruce
- armin
Quoted 52 lines
Signed-off-by: Pascal Bach <[email protected] <mailto:[email protected]>> --- recipes-containers/runc/runc.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/recipes-containers/runc/runc.inc b/recipes-containers/runc/runc.inc index 9199cef..6d11a6e 100644 --- a/recipes-containers/runc/runc.inc +++ b/recipes-containers/runc/runc.inc @@ -12,6 +12,10 @@ PV = "${RUNC_VERSION}+git${SRCPV}" inherit go inherit goarch +inherit pkgconfig + +PACKAGECONFIG ??= "" +PACKAGECONFIG[seccomp] = "seccomp,,libseccomp" RRECOMMENDS_${PN} = "lxc docker" PROVIDES += "virtual/runc" @@ -22,7 +26,7 @@ GO_IMPORT = "import" LIBCONTAINER_PACKAGE="github.com/opencontainers/runc/libcontainer <http://github.com/opencontainers/runc/libcontainer>" do_configure[noexec] = "1" -EXTRA_OEMAKE="BUILDTAGS='' GO=${GO}" +EXTRA_OEMAKE="BUILDTAGS='${PACKAGECONFIG_CONFARGS}' GO=${GO}" do_compile() { # Set GOPATH. See 'PACKAGERS.md'. Don't rely on -- 2.11.0 -- _______________________________________________ meta-virtualization mailing list [email protected] <mailto:[email protected]> https://lists.yoctoproject.org/listinfo/meta-virtualization <https://lists.yoctoproject.org/listinfo/meta-virtualization> -- "Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
Quoted 27 lines · On Tue, May 29, 2018 at 10:56 AM, akuster808 <[email protected]> wrote:
On 05/29/2018 07:45 AM, Bruce Ashfield wrote:
Quoted 8 lines · On Tue, May 29, 2018 at 10:33 AM, akuster808 <[email protected]> wrote:
On 05/29/2018 07:25 AM, Bruce Ashfield wrote:
merged.
Bruce
Quoted 9 lines
Quoted 3 lines · Pascal Bach
This requires libseccomp from meta-security so it is not enabled by default.
will there be a patch to add this dependency to the layer.conf ?
Quoted 9 lines
We just tweaked it, but yes it will need another patch.
But that dependency is conditional, do we have examples of how to make the layer.conf dependency conditional ? We may need a distro or other feature, I suppose.
or we just move libseccomp to meta-oe and call it a day ; ) ( something I have been thinking about for a while)
No objections here!
Bruce
Quoted 69 lines
- armin
Bruce
Quoted 37 lines
- armin
Quoted 33 lines
Signed-off-by Pascal Bach <[email protected]>--- recipes-containers/runc/runc.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)recipes-containers/runc/runc.inc +5
-2@@ -12,6 +12,10 @@ PV = "${RUNC_VERSION}+git${SRCPV}" inherit go inherit goarch +inherit pkgconfig + +PACKAGECONFIG ??= "" +PACKAGECONFIG[seccomp] = "seccomp,,libseccomp" RRECOMMENDS_${PN} = "lxc docker" PROVIDES += "virtual/runc"@@ -22,7 +26,7 @@ GO_IMPORT = "import" LIBCONTAINER_PACKAGE="github.com/opencontainers/runc/libcontainer" do_configure[noexec] = "1" -EXTRA_OEMAKE="BUILDTAGS='' GO=${GO}" +EXTRA_OEMAKE="BUILDTAGS='${PACKAGECONFIG_CONFARGS}' GO=${GO}" do_compile() { # Set GOPATH. See 'PACKAGERS.md'. Don't rely on --2.11.0
Quoted 16 lines
Quoted 6 lines
--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
Quoted 20 lines · Bruce Ashfield
On Tue, May 29, 2018 at 10:33 AM, akuster808 <[email protected] <mailto:[email protected]>> wrote:
On 05/29/2018 07:25 AM, Bruce Ashfield wrote:Quoted 8 lines
merged.
Bruce
On Fri, May 25, 2018 at 9:58 AM, Pascal Bach <[email protected] <mailto:[email protected]>> wrote:
This requires libseccomp from meta-security so it is not enabled by default.
will there be a patch to add this dependency to the layer.conf ?
Quoted 5 lines
We just tweaked it, but yes it will need another patch.
But that dependency is conditional, do we have examples of how to make the layer.conf dependency conditional ? We may need a distro or other feature, I suppose.
Bruce
I did not enable it by default exactly for the reason that I didn't want to include another dependency. We currently add meta-security to our distro layer and just have a bbappnd there that enables seccomp for docker. But if you would be OK with addind meta-security as a dependency that would be fine with me too ;)
Pascal
Quoted 57 lines
- armin
Quoted 46 lines
Signed-off-by: Pascal Bach <[email protected] <mailto:[email protected]>> --- recipes-containers/runc/runc.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/recipes-containers/runc/runc.inc b/recipes-containers/runc/runc.inc index 9199cef..6d11a6e 100644 --- a/recipes-containers/runc/runc.inc +++ b/recipes-containers/runc/runc.inc @@ -12,6 +12,10 @@ PV = "${RUNC_VERSION}+git${SRCPV}" inherit go inherit goarch +inherit pkgconfig + +PACKAGECONFIG ??= "" +PACKAGECONFIG[seccomp] = "seccomp,,libseccomp" RRECOMMENDS_${PN} = "lxc docker" PROVIDES += "virtual/runc" @@ -22,7 +26,7 @@ GO_IMPORT = "import" LIBCONTAINER_PACKAGE="github.com/opencontainers/runc/libcontainer <http://github.com/opencontainers/runc/libcontainer>" do_configure[noexec] = "1" -EXTRA_OEMAKE="BUILDTAGS='' GO=${GO}" +EXTRA_OEMAKE="BUILDTAGS='${PACKAGECONFIG_CONFARGS}' GO=${GO}" do_compile() { # Set GOPATH. See 'PACKAGERS.md'. Don't rely on -- 2.11.0 -- _______________________________________________ meta-virtualization mailing list [email protected] <mailto:[email protected]> https://lists.yoctoproject.org/listinfo/meta-virtualization <https://lists.yoctoproject.org/listinfo/meta-virtualization> -- "Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"Signature · 1 line
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"