Skip to content

Commit

Permalink
Merge pull request #86035 from idealhack/automated-cherry-pick-of-#86…
Browse files Browse the repository at this point in the history
…027-upstream-release-1.17

Automated cherry pick of #86027: Fix broken SELinux detection
  • Loading branch information
k8s-ci-robot committed Dec 12, 2019
2 parents 3da6c11 + d95f824 commit 512f096
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 512f096

Please sign in to comment.