Skip to content

Commit 0a9147f

Browse files
committed
remove "apparmor" build tag
The "apparmor" build tag does not have any cgo dependency and can be removed safely. Related: opencontainers/runc#2704 Signed-off-by: Akihiro Suda <[email protected]>
1 parent 46e1dc5 commit 0a9147f

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

BUILDING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ make generate
107107
> * `no_cri`: A build tag disables building Kubernetes [CRI](http://blog.kubernetes.io/2016/12/container-runtime-interface-cri-in-kubernetes.html) support into containerd.
108108
> See [here](https://github.com/containerd/cri-containerd#build-tags) for build tags of CRI plugin.
109109
> * `no_devmapper`: A build tag disables building the device mapper snapshot driver.
110-
> * `apparmor`: Enables apparmor support in the cri plugin
111110
> * `selinux`: Enables selinux support in the cri plugin
112111
>
113112
> For example, adding `BUILDTAGS=no_btrfs` to your environment before calling the **binaries**

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ MANPAGES=ctr.8 containerd.8 containerd-config.8 containerd-config.toml.5
7777
ifdef BUILDTAGS
7878
GO_BUILDTAGS = ${BUILDTAGS}
7979
endif
80-
# Build tags apparmor and selinux are needed by CRI plugin.
81-
GO_BUILDTAGS ?= apparmor selinux
80+
# Build tag "selinux" is needed by CRI plugin.
81+
GO_BUILDTAGS ?= selinux
8282
GO_BUILDTAGS += ${DEBUG_TAGS}
8383
GO_TAGS=$(if $(GO_BUILDTAGS),-tags "$(GO_BUILDTAGS)",)
8484
GO_LDFLAGS=-ldflags '-X $(PKG)/version.Version=$(VERSION) -X $(PKG)/version.Revision=$(REVISION) -X $(PKG)/version.Package=$(PACKAGE) $(EXTRA_LDFLAGS)'

pkg/apparmor/apparmor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build apparmor,linux
1+
// +build linux
22

33
/*
44
Copyright The containerd Authors.

pkg/apparmor/apparmor_unsupported.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build !apparmor !linux
1+
// +build !linux
22

33
/*
44
Copyright The containerd Authors.

0 commit comments

Comments
 (0)