Introduce a dedicated unconfined AA policy#14855
Merged
calavera merged 1 commit intomoby:masterfrom Jul 23, 2015
Merged
Conversation
By using the 'unconfined' policy for privileged containers, we have inherited the host's apparmor policies, which really make no sense in the context of the container's filesystem. For instance, policies written against the paths of binaries such as '/usr/sbin/tcpdump' can be easily circumvented by moving the binary within the container filesystem. Fixes GH#5490 Signed-off-by: Eric Windisch <[email protected]>
Contributor
Author
|
I've done testing to make sure this doesn't break docker-in-docker, but some more thorough testing by users would be great. Users may invoke the old behavior using '--privileged --security-opt apparmor:unconfined' |
Contributor
Author
Contributor
Author
Contributor
Author
|
@tianon This PR will "stop profiles like mysqld from bleeding into containers and applying to processes that they shouldn't". See #14864 for a policy for the docker binary, hardening against attacks against the engine itself (whether via vulnerabilities in image pulls / extraction, or some other vectors) |
Member
|
🤘 ❤️ LGTM |
Contributor
|
LGTM |
calavera
added a commit
that referenced
this pull request
Jul 23, 2015
Introduce a dedicated unconfined AA policy
RochesterinNYC
added a commit
to cloudfoundry/machete
that referenced
this pull request
Aug 4, 2016
- This fixes the following error that running `tcpdump` in a privileged container generates: `tcpdump: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file: Permission denied` - Problem: moby/moby#5490 - Fix: moby/moby#14855 [#126394949] Signed-off-by: Gabriel Ramirez <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
By using the 'unconfined' policy for privileged
containers, we have inherited the host's apparmor
policies, which really make no sense in the
context of the container's filesystem.
For instance, policies written against
the paths of binaries such as '/usr/sbin/tcpdump'
can be easily circumvented by moving the binary
within the container filesystem.
Fixes #5490 #14550
Signed-off-by: Eric Windisch [email protected]