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.
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.
I think its cleaner to put it in the function and keep the original logic ordering.
|
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.
This is from 2014... Do we really need it?
There was a problem hiding this comment.
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 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.