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 <davanum@gmail.com>
This commit is contained in:
Davanum Srinivas 2020-04-13 08:32:54 -04:00
parent d531dc492a
commit e4ad53f2c2
No known key found for this signature in database
GPG Key ID: 80D83A796103BF59
3 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ VERSION := $(shell git rev-parse --short HEAD)
TARBALL_PREFIX := cri-containerd TARBALL_PREFIX := cri-containerd
TARBALL := $(TARBALL_PREFIX)-$(VERSION).$(GOOS)-$(GOARCH).tar.gz TARBALL := $(TARBALL_PREFIX)-$(VERSION).$(GOOS)-$(GOARCH).tar.gz
ifneq ($(GOOS),windows) ifneq ($(GOOS),windows)
BUILD_TAGS := seccomp apparmor BUILD_TAGS := seccomp apparmor selinux
endif endif
# Add `-TEST` suffix to indicate that all binaries built from this repo are for test. # 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 GO_LDFLAGS := -X $(PROJECT)/vendor/github.com/containerd/containerd/version.Version=$(VERSION)-TEST

View File

@ -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. To add build tags to the make option the `BUILD_TAGS` variable must be set.
```bash ```bash
make BUILD_TAGS='seccomp apparmor' make BUILD_TAGS='seccomp apparmor selinux'
``` ```
| Build Tag | Feature | Dependency | | Build Tag | Feature | Dependency |

View File

@ -32,7 +32,7 @@ if ${NOSUDO}; then
fi fi
# BUILDTAGS are bulid tags for runc and containerd. # BUILDTAGS are bulid tags for runc and containerd.
BUILDTAGS=${BUILDTAGS:-seccomp apparmor} BUILDTAGS=${BUILDTAGS:-seccomp apparmor selinux}
# checkout_repo checks out specified repository # checkout_repo checks out specified repository
# and switch to specified version. # and switch to specified version.