Skip to content

Commit 9067ef0

Browse files
committedMar 7, 2017
Seccomp Update
- Update libseccomp-golang to 0.9.0 release - Update libseccomp to 2.3.2 release - add preadv2 and pwritev2 syscalls to whitelist Signed-off-by: Justin Cormack <[email protected]>
1 parent fd5f9d7 commit 9067ef0

11 files changed

+78
-21
lines changed
 

‎Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ RUN set -x \
108108
&& UNATTENDED=yes OSX_VERSION_MIN=10.6 ${OSXCROSS_PATH}/build.sh
109109
ENV PATH /osxcross/target/bin:$PATH
110110

111-
# Install seccomp: the version shipped in trusty is too old
112-
ENV SECCOMP_VERSION 2.3.1
111+
# Install seccomp: the version shipped upstream is too old
112+
ENV SECCOMP_VERSION 2.3.2
113113
RUN set -x \
114114
&& export SECCOMP_PATH="$(mktemp -d)" \
115115
&& curl -fsSL "https://github.com/seccomp/libseccomp/releases/download/v${SECCOMP_VERSION}/libseccomp-${SECCOMP_VERSION}.tar.gz" \

‎Dockerfile.aarch64

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ RUN cd /usr/local/lvm2 \
7878
&& make install_device-mapper
7979
# See https://git.fedorahosted.org/cgit/lvm2.git/tree/INSTALL
8080

81-
# Install seccomp: the version shipped in trusty is too old
82-
ENV SECCOMP_VERSION 2.3.1
81+
# Install seccomp: the version shipped upstream is too old
82+
ENV SECCOMP_VERSION 2.3.2
8383
RUN set -x \
8484
&& export SECCOMP_PATH="$(mktemp -d)" \
8585
&& curl -fsSL "https://github.com/seccomp/libseccomp/releases/download/v${SECCOMP_VERSION}/libseccomp-${SECCOMP_VERSION}.tar.gz" \

‎Dockerfile.armhf

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ RUN git clone https://github.com/golang/lint.git /go/src/github.com/golang/lint
9292
&& (cd /go/src/github.com/golang/lint && git checkout -q $GO_LINT_COMMIT) \
9393
&& go install -v github.com/golang/lint/golint
9494

95-
# Install seccomp: the version shipped in trusty is too old
96-
ENV SECCOMP_VERSION 2.3.1
95+
# Install seccomp: the version shipped upstream is too old
96+
ENV SECCOMP_VERSION 2.3.2
9797
RUN set -x \
9898
&& export SECCOMP_PATH="$(mktemp -d)" \
9999
&& curl -fsSL "https://github.com/seccomp/libseccomp/releases/download/v${SECCOMP_VERSION}/libseccomp-${SECCOMP_VERSION}.tar.gz" \

‎Dockerfile.ppc64le

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ RUN cd /usr/local/lvm2 \
7777
&& make install_device-mapper
7878
# See https://git.fedorahosted.org/cgit/lvm2.git/tree/INSTALL
7979

80-
# Install seccomp: the version shipped in jessie is too old
81-
ENV SECCOMP_VERSION 2.3.1
80+
# Install seccomp: the version shipped upstream is too old
81+
ENV SECCOMP_VERSION 2.3.2
8282
RUN set -x \
8383
&& export SECCOMP_PATH="$(mktemp -d)" \
8484
&& curl -fsSL "https://github.com/seccomp/libseccomp/releases/download/v${SECCOMP_VERSION}/libseccomp-${SECCOMP_VERSION}.tar.gz" \

‎Dockerfile.s390x

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ RUN apt-get update && apt-get install -y \
5050
vim-common \
5151
--no-install-recommends
5252

53-
# Install seccomp: the version shipped in jessie is too old
54-
ENV SECCOMP_VERSION 2.3.1
53+
# Install seccomp: the version shipped upstream is too old
54+
ENV SECCOMP_VERSION 2.3.2
5555
RUN set -x \
5656
&& export SECCOMP_PATH="$(mktemp -d)" \
5757
&& curl -fsSL "https://github.com/seccomp/libseccomp/releases/download/v${SECCOMP_VERSION}/libseccomp-${SECCOMP_VERSION}.tar.gz" \

‎Dockerfile.simple

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3434
vim-common \
3535
&& rm -rf /var/lib/apt/lists/*
3636

37-
# Install seccomp: the version shipped in trusty is too old
38-
ENV SECCOMP_VERSION 2.3.1
37+
# Install seccomp: the version shipped upstream is too old
38+
ENV SECCOMP_VERSION 2.3.2
3939
RUN set -x \
4040
&& export SECCOMP_PATH="$(mktemp -d)" \
4141
&& curl -fsSL "https://github.com/seccomp/libseccomp/releases/download/v${SECCOMP_VERSION}/libseccomp-${SECCOMP_VERSION}.tar.gz" \

‎profiles/seccomp/default.json

+2
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,12 @@
223223
"prctl",
224224
"pread64",
225225
"preadv",
226+
"preadv2",
226227
"prlimit64",
227228
"pselect6",
228229
"pwrite64",
229230
"pwritev",
231+
"pwritev2",
230232
"read",
231233
"readahead",
232234
"readlink",

‎profiles/seccomp/seccomp_default.go

+2
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,12 @@ func DefaultProfile() *types.Seccomp {
217217
"prctl",
218218
"pread64",
219219
"preadv",
220+
"preadv2",
220221
"prlimit64",
221222
"pselect6",
222223
"pwrite64",
223224
"pwritev",
225+
"pwritev2",
224226
"read",
225227
"readahead",
226228
"readlink",

‎vendor.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ github.com/agl/ed25519 d2b94fd789ea21d12fac1a4443dd3a3f79cda72c
6363
# When updating, also update RUNC_COMMIT in hack/dockerfile/binaries-commits accordingly
6464
github.com/opencontainers/runc a01dafd48bc1c7cc12bdb01206f9fea7dd6feb70 https://github.com/docker/runc.git # libcontainer
6565
github.com/opencontainers/runtime-spec 1c7c27d043c2a5e513a44084d2b10d77d1402b8c # specs
66-
github.com/seccomp/libseccomp-golang 32f571b70023028bd57d9288c20efbcb237f3ce0
66+
github.com/seccomp/libseccomp-golang v0.9.0
6767
# libcontainer deps (see src/github.com/opencontainers/runc/Godeps/Godeps.json)
6868
github.com/coreos/go-systemd v4
6969
github.com/godbus/dbus v4.0.0

‎vendor/github.com/seccomp/libseccomp-golang/seccomp.go

+45
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎vendor/github.com/seccomp/libseccomp-golang/seccomp_internal.go

+16-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.