Skip to content

Commit af1baaa

Browse files
authored
Merge pull request kubernetes#86027 from simonswine/fix-selinux-detection
Fix broken SELinux detection
2 parents a13d674 + 24d1059 commit af1baaa

File tree

4 files changed

+32
-2
lines changed

4 files changed

+32
-2
lines changed

build/root/.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ build --workspace_status_command hack/print-workspace-status.sh
1616
# Make /tmp hermetic
1717
build --sandbox_tmpfs_path=/tmp
1818

19+
# This tag is required to build github.com/opencontainers/selinux correctly
20+
build --define gotags=selinux
21+
1922
# Ensure that Bazel never runs as root, which can cause unit tests to fail.
2023
# This flag requires Bazel 0.5.0+
2124
build --sandbox_fake_username

build/root/BUILD.root

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
# gazelle:exclude _output
66
# gazelle:exclude _tmp
77

8+
# This tag is required to build github.com/opencontainers/selinux correctly
9+
# gazelle:build_tags selinux
10+
811
# gazelle:prefix k8s.io/kubernetes
912

1013
# Disable proto rules, since the Go sources are currently generated by

vendor/github.com/opencontainers/selinux/go-selinux/BUILD

Lines changed: 13 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/opencontainers/selinux/go-selinux/label/BUILD

Lines changed: 13 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)