Skip to content

Conversation

@cyphar
Copy link
Contributor

@cyphar cyphar commented Feb 14, 2016

The method used for checking the version of apparmor_parser
isn't actually correct (a version of 3.0 would cause the checks for
>2.9 to break). In addition, one of the version checks (for suppressing
ptrace denials) was not correct due to the Ubuntu package having
a misleading version number (2.8.95 which is actually 2.9).

This includes a carry of #20270, as well as fixing how versions are checked.

Signed-off-by: Aleksa Sarai [email protected]

@cyphar
Copy link
Contributor Author

cyphar commented Feb 14, 2016

/cc @jfrazelle

Using {{if major}}{{if minor}} doesn't work as expected when the major
version changes. In addition, this didn't support patch levels (which is
necessary in some cases when distributions ship apparmor weirdly).

Signed-off-by: Aleksa Sarai <[email protected]>
@cyphar cyphar force-pushed the fix-apparmor-version-checks branch from 43047da to 284d9d4 Compare February 15, 2016 09:36
Ubuntu ships apparmor_parser 2.9 erroniously as "2.8.95". Fix the
incorrect version check for >=2.8, when in fact 2.8 deosn't support the
required feature.

Signed-off-by: Aleksa Sarai <[email protected]>
@calavera
Copy link
Contributor

LGTM

1 similar comment
@jessfraz
Copy link
Contributor

LGTM

jessfraz pushed a commit that referenced this pull request Feb 16, 2016
@jessfraz jessfraz merged commit 15d7fa7 into moby:master Feb 16, 2016
@thaJeztah thaJeztah added this to the 1.10.2 milestone Feb 16, 2016
@cyphar cyphar deleted the fix-apparmor-version-checks branch February 16, 2016 21:49
@tiborvass tiborvass removed this from the 1.10.2 milestone Feb 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants