-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
libcontainer/apparmor: use sync.Once for AppArmor detection #2852
Conversation
|
||
"github.com/opencontainers/runc/libcontainer/utils" | ||
) | ||
|
||
var ( | ||
appArmorSupported bool |
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.
nit: s/Supported/Enabled/
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.
Dang! I looked at it and wanted to update, but forgot: done 👍
A nit, LGTM otherwise |
Signed-off-by: Sebastiaan van Stijn <[email protected]>
e864338
to
a608b7e
Compare
CI failure is a flake (#2760 (comment)), CI restarted. |
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
This PR appears to be a champion in the amount of unrelated CI failures. CI restarted |
I opened this PR to reveal flaky tests 🤣😂 |
I recalled I added a similar change in containerd, but didn't upstream it here. Also removing
bytes.HasPrefix()
in favor of just checking the first character