Skip to content
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

Merged
merged 1 commit into from Dec 8, 2019

Conversation

simonswine
Copy link
Contributor

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.

NONE

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

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. kind/bug Categorizes issue or PR as related to a bug. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Dec 7, 2019
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
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. label Dec 7, 2019
@dims
Copy link
Member

dims commented Dec 8, 2019

/assign @cblecker @liggitt
/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 8, 2019
@dims dims removed their assignment Dec 8, 2019
@dims
Copy link
Member

dims commented Dec 8, 2019

/priority important-soon
/sig architecture
/sig node
/sig storage

@k8s-ci-robot k8s-ci-robot added priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. sig/architecture Categorizes an issue or PR as relevant to SIG Architecture. sig/node Categorizes an issue or PR as relevant to SIG Node. sig/storage Categorizes an issue or PR as relevant to SIG Storage. and removed needs-priority Indicates a PR lacks a `priority/foo` label and requires one. needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Dec 8, 2019
@cblecker
Copy link
Member

cblecker commented Dec 8, 2019

/lgtm
/approve

@kubernetes/patch-release-team @guineveresaenger This should get CP'd into 1.16/1.17

@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 8, 2019
@k8s-ci-robot k8s-ci-robot merged commit af1baaa into kubernetes:master Dec 8, 2019
@liggitt
Copy link
Member

liggitt commented Dec 9, 2019

I would like to see a test added that would have caught this regression.

k8s-ci-robot added a commit that referenced this pull request Dec 12, 2019
…027-upstream-release-1.17

Automated cherry pick of #86027: Fix broken SELinux detection
k8s-ci-robot added a commit that referenced this pull request Dec 16, 2019
…027-upstream-release-1.16

Automated cherry pick of #86027: Fix broken SELinux detection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note-none Denotes a PR that doesn't merit a release note. sig/architecture Categorizes an issue or PR as relevant to SIG Architecture. sig/node Categorizes an issue or PR as relevant to SIG Node. sig/storage Categorizes an issue or PR as relevant to SIG Storage. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SELinux Volumes not relabeled in 1.16, test coverage of volume relabeling is lacking
5 participants