Skip to content

Commit

Permalink
Merge pull request #86027 from simonswine/fix-selinux-detection
Browse files Browse the repository at this point in the history
Fix broken SELinux detection
  • Loading branch information
k8s-ci-robot committed Dec 8, 2019
2 parents a13d674 + 24d1059 commit af1baaa
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
3 changes: 3 additions & 0 deletions build/root/.bazelrc
Expand Up @@ -16,6 +16,9 @@ build --workspace_status_command hack/print-workspace-status.sh
# Make /tmp hermetic
build --sandbox_tmpfs_path=/tmp

# This tag is required to build github.com/opencontainers/selinux correctly
build --define gotags=selinux

# Ensure that Bazel never runs as root, which can cause unit tests to fail.
# This flag requires Bazel 0.5.0+
build --sandbox_fake_username
Expand Down
3 changes: 3 additions & 0 deletions build/root/BUILD.root
Expand Up @@ -5,6 +5,9 @@
# gazelle:exclude _output
# gazelle:exclude _tmp

# This tag is required to build github.com/opencontainers/selinux correctly
# gazelle:build_tags selinux

# gazelle:prefix k8s.io/kubernetes

# Disable proto rules, since the Go sources are currently generated by
Expand Down
14 changes: 13 additions & 1 deletion vendor/github.com/opencontainers/selinux/go-selinux/BUILD

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion vendor/github.com/opencontainers/selinux/go-selinux/label/BUILD

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit af1baaa

Please sign in to comment.