-
Notifications
You must be signed in to change notification settings - Fork 3.8k
pkg/cri/server: remove dependency on libcontainer/apparmor, libcontainer/utils #4715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkg/cri/server: remove dependency on libcontainer/apparmor, libcontainer/utils #4715
Conversation
|
Build succeeded.
|
|
interesting calculation took 7969ms 🙀 that's rather long to change |
🤔 false positive? |
20c095c to
a6ca3fa
Compare
|
Build succeeded.
|
a6ca3fa to
b05b5d4
Compare
|
Build succeeded.
|
b05b5d4 to
eda49e3
Compare
|
Build succeeded.
|
eda49e3 to
9eb4918
Compare
|
Build succeeded.
|
|
Detailsedit: never mind; silly mistake; flipped a bool |
9eb4918 to
b38e28e
Compare
pkg/cri/server/helpers_linux.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW; I was in doubt wether to add the os.Getenv() here, or in hostSupportsAppArmor(); happy to move it there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think its cleaner to put it in the function and keep the original logic ordering.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dmcgowan updated; PTAL
|
Build succeeded.
|
b38e28e to
ce831a0
Compare
|
Build succeeded.
|
|
Is there a time-limit on tests? Looks like one was cancelled after 15 minutes; edit: rebased to trigger CI again |
ce831a0 to
7ff1502
Compare
|
Build succeeded.
|
7ff1502 to
9d52370
Compare
|
Build succeeded.
|
9d52370 to
8c77bce
Compare
|
Build succeeded.
|
|
yay, green |
pkg/cri/server/helpers_linux.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is from 2014... Do we really need it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently we do opencontainers/runc#2554 (comment)
…ner/utils recent versions of libcontainer/apparmor simplified the AppArmor check to only check if the host supports AppArmor, but no longer checks if apparmor_parser is installed, or if we're running docker-in-docker; opencontainers/runc@bfb4ea1 > The `apparmor_parser` binary is not really required for a system to run > AppArmor from a runc perspective. How to apply the profile is more in > the responsibility of higher level runtimes like Podman and Docker, > which may do the binary check on their own. This patch copies the logic from libcontainer/apparmor, and restores the additional checks. Signed-off-by: Sebastiaan van Stijn <[email protected]>
8c77bce to
eba94a1
Compare
|
Build succeeded.
|
dmcgowan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@dmcgowan good to go? |
relates to #4678 (comment)
relates to opencontainers/runc#2554
relates to moby/moby#5534
recent versions of libcontainer/apparmor simplified the AppArmor
check to only check if the host supports AppArmor, but no longer
checks if apparmor_parser is installed, or if we're running
docker-in-docker;
opencontainers/runc@bfb4ea1
This patch copies the logic from libcontainer/apparmor, and
restores the additional checks.