Skip to content
This repository was archived by the owner on Jun 11, 2020. It is now read-only.

Conversation

@thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Aug 8, 2019

addresses ENGCORE-866
backport of opencontainers#1424 for 17.06

A bug in Seccomp filter handling was recently identified in Moby related to handling of syscall arguments in Seccomp filters (moby/moby#32714). The bug was in the libseccomp-golang bindings, and has been fixed there. This PR updates the bindings to include this fix, and provides integration tests to catch regressions in this behavior.

The minimum supported version of libseccomp is bumped from v2.1.0 to v2.2.0 by associated changes to the bindings. Support for v2.1.0 was never very good (some features had to be gated off because of a library bug), though it is still the version provided by a few major distributions. If this change is contentious, I can see about backing out the changes that require v2.2.0.

This fixes CVE-2017-18367 - Multiple syscall arguments were incorrectly combined with logical-OR, instead of logical-AND

mheon added 2 commits August 8, 2019 17:49
Syscall argument handling was bugged in previous releases.
Per-argument match rules were handled with OR logic when they
should have used AND logic. The updated version of the bindings
resolves this issue.

As a side effect, the minimum supported version of Libseccomp has
been raised from v2.1.0 to v2.2.0.

Signed-off-by: Matthew Heon <[email protected]>
(cherry picked from commit 03a5a74)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Matthew Heon <[email protected]>
(cherry picked from commit bbc847a)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah
Copy link
Member Author

@kolyshkin @andrewhsu PTAL

not sure how to get CI (travis) running again on this one

Signed-off-by: Matthew Heon <[email protected]>
(cherry picked from commit 472fa3d)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah force-pushed the 17.06_backport_update_libseccomp_golang branch from 98bf9c5 to 67bdcdb Compare September 5, 2019 17:58
@kolyshkin
Copy link

kolyshkin commented Sep 5, 2019

Tried to run the test added locally, got some errors, looks like we need to do some fixing. Will look into it later today.

nevermind, it was just an issue of canonical path.

@thaJeztah thaJeztah closed this Sep 5, 2019
@thaJeztah thaJeztah deleted the 17.06_backport_update_libseccomp_golang branch September 5, 2019 19:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants