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
Fix broken SELinux detection #86027
Fix broken SELinux detection #86027
Conversation
The upgrade of dependencies in kubernetes#78187 introduced a regression in detecting if SELinux is enabled or not. As the library requires the golang build tag `selinux` to be enabled after that version update. Fixes bug report kubernetes#83679
ffcb4a3
to
24d1059
Compare
/priority important-soon |
/lgtm @kubernetes/patch-release-team @guineveresaenger This should get CP'd into 1.16/1.17 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cblecker, dims, simonswine The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I would like to see a test added that would have caught this regression. |
…027-upstream-release-1.17 Automated cherry pick of #86027: Fix broken SELinux detection
…027-upstream-release-1.16 Automated cherry pick of #86027: Fix broken SELinux detection
The upgrade of dependencies in #78187 introduced a regression in
detecting if SELinux is enabled or not. As the library requires
the golang build tag
selinux
to be enabled after that version update.What type of PR is this?
/kind bug
What this PR does / why we need it:
The dependency update PR #78187 broke SELinux detection
All versions since that change have problems starting pods on SELinux enabled hosts
Which issue(s) this PR fixes:
Fixes #83679
Special notes for your reviewer:
I am not too much of an bazel/gazelle expert and I am not too sure what other implications my changes might have.
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
51177c1
Before regression: https://github.com/opencontainers/selinux/blob/4a2974bf1ee960774ffd517717f1f45325af0206/go-selinux/selinux.go#L1
With regression, requiring the build tag: https://github.com/opencontainers/selinux/blob/v1.2.2/go-selinux/selinux_linux.go#L1