Skip to content

Commit a1f4ffb

Browse files
authored
Merge pull request #3575 from crosbymichael/seccom2.3
Pin to libseccomp 2.3.3
2 parents 80ed8e1 + b5f03ea commit a1f4ffb

2 files changed

Lines changed: 38 additions & 1 deletion

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ addons:
3434
- libprotobuf-c0-dev
3535
- libprotobuf-dev
3636
- socat
37-
- libseccomp-dev
3837

3938
before_install:
4039
- uname -r
@@ -48,6 +47,7 @@ install:
4847
- go get -u github.com/vbatts/git-validation
4948
- go get -u github.com/kunalkushwaha/ltag
5049
- go get -u github.com/LK4D4/vndr
50+
- if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-seccomp ; fi
5151
- if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-runc ; fi
5252
- if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-cni ; fi
5353
- if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-critools ; fi

script/setup/install-seccomp

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright The containerd Authors.
4+
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
18+
#
19+
# Builds and installs runc to /usr/local/go/bin based off
20+
# the commit defined in vendor.conf
21+
#
22+
set -eu -o pipefail
23+
24+
set -x
25+
26+
export SECCOMP_VERSION="2.3.3"
27+
export SECCOMP_PATH="$(mktemp -d)"
28+
curl -fsSL "https://github.com/seccomp/libseccomp/releases/download/v${SECCOMP_VERSION}/libseccomp-${SECCOMP_VERSION}.tar.gz" | tar -xzC "$SECCOMP_PATH" --strip-components=1
29+
(
30+
cd "$SECCOMP_PATH"
31+
./configure --prefix=/usr/local
32+
make
33+
make install
34+
ldconfig
35+
)
36+
37+
rm -rf "$SECCOMP_PATH"

0 commit comments

Comments
 (0)