Skip to content

Commit b89a63a

Browse files
committed
Remove references to apparmor and selinux buildtags for runc
From the runc v1.0.0-rc93 release notes: > The "selinux" and "apparmor" buildtags have been removed, and now all runc > builds will have SELinux and AppArmor support enabled. Note that "seccomp" > is still optional (though we very highly recommend you enable it). Also adding a note about kmem support. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 17ab5dd commit b89a63a

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

BUILDING.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,12 @@ Next, let's build `runc`:
209209

210210
```sh
211211
cd /go/src/github.com/opencontainers/runc
212-
make BUILDTAGS='seccomp apparmor selinux' && make install
212+
make && make install
213213
```
214214

215+
For further details about building runc, refer to [RUNC.md](docs/RUNC.md) in the
216+
docs directory.
217+
215218
When working with `ctr`, the simple test client we just built, don't forget to start the daemon!
216219

217220
```sh

docs/RUNC.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,26 @@ Note: before building you may need to install additional support, which will var
1010

1111
From within your `opencontainers/runc` repository run:
1212

13-
### apparmor
14-
1513
```bash
16-
make BUILDTAGS='seccomp apparmor' && sudo make install
14+
make && sudo make install
1715
```
1816

19-
### selinux
17+
Starting with runc 1.0.0-rc93, the "selinux" and "apparmor" buildtags have been
18+
removed, and runc builds have SELinux, AppArmor, and seccomp support enabled
19+
by default. Note that "seccomp" can be disabled by passing an empty `BUILDTAGS`
20+
make variable, but is highly recommended to keep enabled.
2021

21-
```bash
22-
make BUILDTAGS='seccomp selinux' && sudo make install
22+
By default, runc is compiled with kernel-memory limiting support enabled. This
23+
functionality is deprecated in kernel 5.4 and up, and is known to be broken on
24+
RHEL7 and CentOS 7 3.10 kernels. For these kernels, we recommend disabling kmem
25+
support using the `nokmem` build-tag. When doing so, be sure to set the `seccomp`
26+
build-tag to enable seccomp support, for example:
27+
28+
```sh
29+
make BUILDTAGS='nokmem seccomp' && make install
2330
```
2431

32+
For details about the `nokmem` build-tag, refer to [opencontainers/runc#2594](https://github.com/opencontainers/runc/pull/2594).
33+
For further details on building runc, refer to the [build instructions in the runc README](https://github.com/opencontainers/runc#building).
34+
2535
After an official runc release we will start pinning containerd support to a specific version but various development and testing features may require a newer runc version than the latest release. If you encounter any runtime errors, please make sure your runc is in sync with the commit/tag provided in this document.

script/setup/install-runc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function install_runc() {
2727
git clone https://github.com/opencontainers/runc.git "${TMPROOT}"/runc
2828
pushd "${TMPROOT}"/runc
2929
git checkout "${RUNC_COMMIT}"
30-
make BUILDTAGS='apparmor seccomp selinux' runc
30+
make runc
3131
make install
3232
popd
3333
rm -fR "${TMPROOT}"

0 commit comments

Comments
 (0)