From e4ad53f2c2e66d0345111c790bf464c094ebf46e Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Mon, 13 Apr 2020 08:32:54 -0400 Subject: [PATCH] Build runc with selinux support docker-ce seems to be building runc with selinux support, let us follow the same pattern here please: https://github.com/docker/docker-ce/search?p=1&q=RUNC_BUILDTAGS&unscoped_q=RUNC_BUILDTAGS Signed-off-by: Davanum Srinivas --- Makefile | 2 +- README.md | 2 +- hack/install/utils.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 304080843..9c6a5d1ee 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ VERSION := $(shell git rev-parse --short HEAD) TARBALL_PREFIX := cri-containerd TARBALL := $(TARBALL_PREFIX)-$(VERSION).$(GOOS)-$(GOARCH).tar.gz ifneq ($(GOOS),windows) - BUILD_TAGS := seccomp apparmor + BUILD_TAGS := seccomp apparmor selinux endif # Add `-TEST` suffix to indicate that all binaries built from this repo are for test. GO_LDFLAGS := -X $(PROJECT)/vendor/github.com/containerd/containerd/version.Version=$(VERSION)-TEST diff --git a/README.md b/README.md index 071173658..1c755c8b9 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ testing purposes. The version tag carries the suffix "-TEST".* To add build tags to the make option the `BUILD_TAGS` variable must be set. ```bash -make BUILD_TAGS='seccomp apparmor' +make BUILD_TAGS='seccomp apparmor selinux' ``` | Build Tag | Feature | Dependency | diff --git a/hack/install/utils.sh b/hack/install/utils.sh index c95b456d8..3c524026f 100755 --- a/hack/install/utils.sh +++ b/hack/install/utils.sh @@ -32,7 +32,7 @@ if ${NOSUDO}; then fi # BUILDTAGS are bulid tags for runc and containerd. -BUILDTAGS=${BUILDTAGS:-seccomp apparmor} +BUILDTAGS=${BUILDTAGS:-seccomp apparmor selinux} # checkout_repo checks out specified repository # and switch to specified version.